Enabling a JMX port for monitoring
To open the JMX port connection
To open the JMX port on the remote JVM, you must enter the port number to use for the JMX RMI connection. Be sure to specify an unused port number.
- From a command line, go to the bin directory in the <JRE_HOME> directory that contains the Java Runtime Environment (JRE) implementation, for example jre/bin.
- Set the following system properties with the port number to use as the JMX RMI connection:
-Dcom.sun.management.jmxremote.port=<JMX port>
-Dcom.sun.management.jmxremote.rmi.port=<JMX port>
For example,
java -Dcom.sun.management.jmxremote.port=5000
java -Dcom.sun.management.jmxremote.rmi.port=5000
For more information about managing the JVM through JMX technology, see Oracle's instructions at Monitoring and Management Using JMX Technology.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*