1, first install the JDK on their own computer, after installation, go to the installation directory bin below to find the Jvisualvm.exe application, run it.
2, right-click "Remote" "Add remote host" After the end, add the following parameters in front of the bin/startup.sh last line of the Tomcat host:
# this JMX
Export catalina_opts= "$CATALINA _opts-dcom.sun.management.jmxremote-dcom.sun.management.jmxremote.port=8849- Dcom.sun.management.jmxremote.ssl=false-dcom.sun.management.jmxremote.authenticate=false- djava.rmi.server.hostname=10.1.1.42 "
IP address is the IP address of the Tomcat application, the port number can be set freely, do not conflict with the existing port.
3. Select the host you have added, right-click to select "Add JMX Connection", and on "connection" enter Tomcat IP and port: 10.1.1.42:8849
JDK comes with VISUALVM monitor tomcat memory, CPU