Remote monitoring with Xshell+xmanager JVISUALVM

Source: Internet
Author: User
Tags sha1 ssh server

Using JVISUALVM remote to monitor server-side JVISUALVM is not very convenient, so the local approach should be a straight path.

First, server-side (Linux, minimal installation mode, no graphical interface)

1. Installing Xauth

If X11 forwarding is configured in Xshell, the following prompt appears:

warning! The remote SSH server rejected X11 forwarding request.

You need to see if the following options in/etc/ssh/sshd_config are Yes,

x11forwarding Yes

If the setting is not a problem, when the connection is still reported above, you need to install Xauth ( using Microsoft Azure, minimize the installation of Linux, the default is not Xauth)

Yum Install Xorg-x11-xauth

2. Installing Xhost

If you execute the Xhost + command and you are prompted that the Xhost command cannot be found, you will also need to install xhost, otherwise skip this step:

[Email protected]~]$ xhost +-bash:xhost:command not found

See who provided the Xhost:

[email protected] ~]$ Yum provides xhost
Loaded Plugins:fastestmirror, LangPacks
Determining fastest Mirrors
xorg-x11-server-utils-7.7-20.el7.x86_64 : x.org X11 X Server Utilities
Repo:base
Matched from:
Provides:xhost = 1.0.7

Select the installation from the list:

[Email protected]]$yum install xorg-x11-server-utils-7.7-El7.x86_64[[email Protected]-sha1-flk-~]$ xhost + from any host

3. Check if the $display has a value

[Email protected]]$ echo $DISPLAYlocalhost: 10.0

Ii. Client (Windows)

1. Installing Xshell

2. Installing Xmanager

Xmanager will automatically find the x display option as Xshell

3. Configure Xshell

Third, the use of steps

1.Xshell Connecting a remote server

2. Start Xhost + in Xshell to enable Xserver on the client

[Email protected] ~]$ xhost + from any host

If the client's Xmanager is not open, then you will find that the client's Xmanager will be pulled up.

3. Start the JVISUALVM in Xshell

[email protected]-sha1-flk-~]$ JVISUALVM

This will find JVISUALVM in the Xmanager:

Remote monitoring with Xshell+xmanager JVISUALVM

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.