Start java VisualVM to connect to linux remotely, sometimes it cannot solve the problem that the GC module does not support the current JVM. At this time, it is also a good choice to start java VisualVM locally on the Linux server.
Starting directly on the server will prompt: environment variable DISPLAY is not set.
At this time, the server needs to configure the graphical interface to start and display the application you want.
Under Window, use Putty+Xming to realize the reception of X interface
First, the windows client needs putty+xwing
Putty download address: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Xming download address: http://www.softpedia.com/progDownload/Xming-Download-68035.html
The settings in putyy are shown in the figure:
Check enable xll forwarding and fill in localhost:0
then log in to the server
2. Run jvisualm, an error message appears,
3. Configure on the server to allow x forwarding
1.vi /etc/ssh/ssh_config
2. Find the X11Forwarding line, change the no (or yes) behind it to yes, and make sure there is no # good comment in front of it, save and exit.
Reference address: https://blog.csdn.net/lijiecong/article/details/6911787
https://blog.csdn.net/keketrtr/article/details/53516078