This chapter describes the protocol and the system flags used for communication with the Java Mission Control. It also describes how to use password authentication for your JVM connections.
This section contains the following topics:
J2SE 5.0 and later versions of the JVM use JMXRMI (JMX over RMI). To configure the connection, the following system flags are used:
-Dcom.sun.management.jmxremote.port
-Dcom.sun.management.jmxremote.authenticate
-Dcom.sun.management.jmxremote.ssl
The following examples demonstrate how to use these system flags during JVM startup.
Example 1
$JDK/bin/java -Dcom.sun.management.jmxremote=true
-Dcom.sun.management.jmxremote.port=7091
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false java_application
The above set of properties start the JVM without any authentication.
Example 2
$JDK/bin/java -Dcom.sun.management.jmxremote.port=7099
-Dcom.sun.management.jmxremote.ssl=false java_application
In this example, the user must provide a user name and password to open a console for the application. The user name and password should match the user name and password configured in the file $JDK\jre\lib\management\jmxremote.password
.
For more information about the system properties, see http://docs.oracle.com/javase/7/docs/technotes/guides/management/agent.html#gdfvv
.
When you create a new connection, you can specify a user name and password to authenticate the connection. You can store the password in a settings file and encrypt the password by using a master password.
If you have chosen to store the password, the Java Mission Control client will prompt to enter the master password when you open the connection.
By using the Java Mission Control Client, you can store the password in a settings file as described in the following procedure.
In the New Connection dialog box, enter the user and password for the connection.
Select Store password in settings file.
Click Finish.
The Create Master Password dialog box opens.
Define your master password in the Create Master Password dialog box.
Click OK.
When you restart the client, you must enter the master password in the Verify Master Password dialog box to open the connection.