jvisualvm remote monitoring Tomcat

To connect to a remote machine through JMX, you need to go through the following configuration:
  1. Enter the JAVA_HOME\jre\lib\management\ directory
  2. Copy the jmxremote.access file to the tomcat/conf directory

  3. Copy the jmxremote.password.template file to the tomcat/conf directory and rename it to jmxremote.password
  4. Open the jmxremote.password file and remove the comment symbols in front of the lines # monitorRole QED and # controlRole R&D

  5. Add the following to the catalina.sh file:

JAVA_OPTS="-Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname="

  6. Restart the tomcat service

Guess you like