Documentation Contents
Java Platform, Standard Edition Java Mission Control User's Guide
Contents    Previous    Next

3 Managing JVM Connections

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:

3.1 Java Mission Control Communication

J2SE 5.0 and later versions of the JVM use JMXRMI (JMX over RMI). To configure the connection, the following system flags are used:

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.

3.2 Using Encrypted Passwords for JVM Connections

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.

  1. In the New Connection dialog box, enter the user and password for the connection.

  2. Select Store password in settings file.

  3. Click Finish.

    The Create Master Password dialog box opens.

  4. Define your master password in the Create Master Password dialog box.

  5. Click OK.

When you restart the client, you must enter the master password in the Verify Master Password dialog box to open the connection.

Contents    Previous    Next

Oracle and/or its affiliates Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.
Contact Us