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