![]() Previous |
![]() Next |
In the JVM Browser you can see locally discovered JVMs that are running on your computer. With the Java Mission Control tools, you can to connect to these JVMs, even though they have not been started with the -Dcom.sun.management.jmxremote
flags.
If you cannot connect to a locally discovered JVM, it probably means that the JVM is an older version. It can also mean that the JVM was not started with the -Dcom.sun.management.jmxremote
flags and the preference setting does not allow the management agent to be started.
To change preferences for locally discovered JVMs:
Click Window then Preferences.
Click Java Mission Control then JVM Browser and then Local.
The Local preferences dialog box appears.
Select Automatically start the local management agent, if not already started
If the option Automatically start the local management agent, if not already started is turned off (unchecked), then Java Mission Control is not able to connect to the JVMs that are locally discovered, unless they were started with the -Dcom.sun.management.jmxremote
option.
Click OK when you are done.
To start, alter or stop remote JMX agents:
Right click a locally discovered JVM.
Click Control the Remote JMX Agent.
The Control the Remote JMX Agent wizard opens.
Modify the settings in this wizard, as desired.
These settings correspond to the system properties of the -Dcom.sun.management.jmxremote
option. For more details see http://docs.oracle.com/javase/1.5.0/docs/guide/management/agent.html#jmxagent.
Click Finish.
A diagnostic command is invoked to start, alter or stop the remote JMX agent with the settings you specified in the Control the Remote JMX Agent wizard.