![]() Previous |
![]() Next |
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 be set when starting the JVM:
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
.
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
.
WARNING: 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. |
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.
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 Chapter 2 of the Java SE Monitoring and Management Guide at http://docs.oracle.com/javase/8/docs/technotes/guides/management/agent.html
Example: Starting a JVM With JMXRMI Enabled and No Authentication Required demostrates how to start a Java application (named MyApp
) with JMXRMI enabled on port 7091 and no authentication required.