Using the Java Visualvm__java on CentOS

Source: Internet
Author: User

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.





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.