Jvisualvm_ using JMX to connect to remote Linux applications

Source: Internet
Author: User
Tags ssl connection

Premise

JVISUALVM is a performance analysis tool provided by Sun, which comes in later versions of Jdk6.0 and is installed separately if used with Jdk1.5 or previous versions.

"1" remote machine needs to turn on JMX

To enable JMX on the server before using JVISUALVM, you need to configure the Jmxremote in the tomcat_home/bin/catalina.sh file of the pressure measurement application;

Add the Jmxremote configuration to the catalina.sh file:
-dcom.sun.management.jmxremote=true
-dcom.sun.management.jmxremote.port=8060//Ports used when using JMX connections
-dcom.sun.management.jmxremote.authenticate=false
-dcom.sun.management.jmxremote.ssl=false
-djava.rmi.server.hostname= Server True IP address//IP invalid, will not connect

"2" Connect to remote Linux using JVISUALVM

① Add remote host: After opening the Jvisualvm.exe application under local jdk/bin, "remote" → "Add remote host" → Enter "remote host IP" to add;

② Add JMX Connection: Right-click the remote host, select "Add JMX Connection", connect as "HostIP: Port", configure the port =jmxremote.port;

Note: Because the first step in the configuration of the Ssl=false, so when you enter the "username && password" To use security credentials to connect, you need to check "Do not require SSL connection";

To monitor remote Java processes:

Jvisualvm_ using JMX to connect to remote Linux applications

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.