VISUALVM Reference Manual
Http://download.oracle.com/javase/6/docs/technotes/guides/visualvm/index.html
VISUALVM Remote Monitoring program, the need to jstatd boot on the remote machine, JSTATD reference http://blog.csdn.net/lijiecong/article/details/6905011. JSTATD does not boot well, causing VISUALVM connection errors.
Also note whether the remote machine is open to the JSTATD port, and defaults to 1099.
If you want to use Java VISUALVM on the server, such as CentOS. Then the warning:environment variable DISPLAY is not set appears because the general server does not install X server. We can install an X server on a remote machine, such as WINDWOS, so it is very convenient to see the server running.
SSH + xming can be used in the way, ssh with putty, xming download address: http://sourceforge.net/projects/xming/
As long as the x forwarding is set in the putty, it is of course possible to allow X forwarding on the/etc/ssh/ssh_config on the server.
Check Enable X11 forwarding, X display location fill localhost:0, 0 means the Xming instance number on your machine, which can be set by Xlaunch.
Then putty running JVISUALVM, your Windows machine will naturally jump out of the graphical interface. This allows you to view more detailed running of Java on a remote server, such as the Thread,profiler tab.
If you are using remote connections, these tabs are not available.