June 2018
Intermediate to advanced
408 pages
11h 23m
English
To configure JMX on Tomcat, we need to set the relevant system properties upon JVM startup. We can use the following methods.
We can update the catalina.sh or catalina.bat file in {tomcat-folder}\bin\, adding the following values:
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port={port to access} -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
For example, we can add the following values at {tomcat-folder}\bin\catalina.bat:
set JAVA_OPTS="-Dcom.sun.management.jmxremote-Dcom.sun.management.jmxremote.port=8990-Dcom.sun.management.jmxremote.authenticate=false-Dcom.sun.management.jmxremote.ssl=false"
If you want to configure JMX for your Tomcat in Eclipse, ...
Read now
Unlock full access