Java Management Extensions (JMX)

Published: Monday, 26 July 2010
java

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=false

This works in Java 5 and 6

Connecting to JMX console

You can then use jconsole and connect to port 9004 of the JVM’s server.