Enabling a JMX port for monitoring


Before you configure a Tomcat or Generic Java Server KM in a console, you must enter the port number that you want to use for the JMX RMI connection.

Using the Java Management Extensions (JMX) technology, the Java Virtual Machine (JVM) has built-in instrumentation that lets you set the port for the JMX RMI. These built-in management utilities are often referred to as out-of-the-box management tools for the JVM.


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. 

  1. 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.
  2. 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.


Note

To monitor a remote JMX port, you may also need to set the following system property security settings in case you do not have an authenticated or ssl connection:
com.sun.management.jmxremote.authenticate=false
com.sun.management.jmxremote.ssl=false

If you need to use a JMX secure connection or JMX authentication, use the instructions in Monitoring and Management Using JMX Technology.

 

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*