Use Java visualvm on centos

Source: Internet
Author: User
Tags visualvm xming

Visualvm Reference Manual

Http://download.oracle.com/javase/6/docs/technotes/guides/visualvm/index.html

Visual VM Remote MonitoringProgramJstatd needs to be started on a remote machine, jstatd reference http://blog.csdn.net/lijiecong/article/details/6905011. If jstatd is not started properly, the connection to visualvm may fail.

Check whether the jstatd port is enabled on the remote machine. The default value is 1099.

If you want to use Java visualvm, such as centos, on the server. Then there will be a warning: Environment Variable display is not set, because generally the server will not install X server. We can install an X server on a remote machine, such as windwos, to conveniently view the server running status.

SSH + xming can be used, ssh putty, xming: http://sourceforge.net/projects/xming/

As long as you set X forwarding in putty, you must also allow x forwarding on the server/etc/ssh/ssh_config.

Select enable X11 forwarding, and fill in localhost: 0 in X Display location. 0 indicates the xming instance number on your machine. You can set it through xlaunch.

Then run jvisualvm in putty, and your Windows machine will naturally jump out of the graphic interface. In this way, you can view the detailed running status of Java on the remote server, such as thread and Profiler option cards.

These tabs are not available if you use remote connection.

Related Article

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.