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