Java Management Extensions (JMX)
Enabling JMX
Section titled “Enabling JMX”To enable JMX in an insecure way, use something like the following to your JVM options.
-Dcom.sun.management.jmxremote.port=9004-Dcom.sun.management.jmxremote.authenticate=false-Dcom.sun.management.jmxremote.ssl=falseThis works in Java 5 and 6
Connecting to JMX console
Section titled “Connecting to JMX console”You can then use jconsole and connect to port 9004 of the JVM’s server.