G
Gossip Burst Report

Enabling a JMX port for monitoring - Documentation for BMC PATROL for Apache Tomcat and Generic Java Server 3.1

Author

Daniel Foster

Published Apr 07, 2026

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 Open link.

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.