Go to primary content
Previous
Previous
Next
Next

JDK Mission Control Communications

The HotSpot JVM uses Java Management Extensions (JMX) technology over a Remote Method Invocation (RMI) connector to enable monitoring and management features. This is also known as JMX over RMI, or simply JMXRMI. To configure the connection, the following system properties must set when starting the JVM:

-Dcom.sun.management.jmxremote

This option toggles the use of JMXRMI. It is enabled by default, so you do not need to set it to use the monitoring features of the JVM. To disable JMXRMI for the JVM, specify -Dcom.sun.management.jmxremote=false.

-Dcom.sun.management.jmxremote.authenticate

This options toggles the use of password authentication for a JMXRMI connection. It is enabled by default. To disable password authentication for a JVM, specify -Dcom.sun.management.jmxremote.authenticate=false

Note:

Disabling authentication is not secure. Any remote user who knows (or guesses) the JMX port number and host name will be able to monitor and control your Java application and VM. While it may be acceptable for development, it is not recommended for production systems.

-Dcom.sun.management.jmxremote.port

This option sets the port number for the JMXRMI connection. You must set an unused port number to enable monitoring and management of the JVM.

-Dcom.sun.management.jmxremote.ssl

This option toggles the use of Secure Sockets Layer (SSL) authentication. It is enabed by default. To disable SSL authentication for a JVM, specify —Dcom.sun.management.jmxremote.ssl=false.

  • -Dcom.sun.management.jmxremote.port

  • -Dcom.sun.management.jmxremote.authenticate

  • -Dcom.sun.management.jmxremote.ssl

For more information about these flags, see Monitoring and Management Using JMX Technology

Example 4-1 Starting a JVM With JMXRMI Enabled and No Authentication Required

The following example demonstrates how to start a Java application (named MyApp) with JMXRMI enabled on port 7091 and no authentication required.

java -Dcom.sun.management.jmxremote.port=7091
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false MyApp

Previous
Previous
Next
Next