- Heap memory monitoring
- Threads monitoring
- CPU usage monitoring
- Number of loaded classes
- JMX: accessing MBeans registered to the MBean server of the JVM
However, to connect to a remote JVM, the JVM needs to be started with options that enables the RMI server for JMX.
"-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=XXXX -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authentic
In the case of Tomcat, add the following lines to setenv.sh
CATALINA_OPTS="-Dcom.sun.management.jmxr
export CATALINA_OPTS
To enable password security, add the following options:
"-Dcom.sun.management.jmxremote.pass
and change "-Dcom.sun.management.jmxremote.a
The password file should look something like:
jmxuser password
The access file should look something like:
jmxuser readwrite
No comments:
Post a Comment