Activating JMX on JVM for Access via jconsole
Accessing JVM internals using tools like jconsole requires the Java Management Extensions (JMX) to be activated. Follow these steps to enable JMX on your JVM:
Relevant Documentation:
Command Line Parameters:
Start your program with the following parameters:
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=<port> -Dcom.sun.management.jmxremote.rmi.port=<rmi port> -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
Example:
java -Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port=9010 \ -Dcom.sun.management.jmxremote.local.only=false \ -Dcom.sun.management.jmxremote.authenticate=false \ -Dcom.sun.management.jmxremote.ssl=false \ -jar Notepad.jar
Additional Notes:
The above is the detailed content of How to Enable JMX on your JVM for Access via jconsole?. For more information, please follow other related articles on the PHP Chinese website!