This procedure describes how to connect JConsole to Enterprise Server. Security is not enabled on the JMX Connector.
Start the domain.
For instructions, see To Start a Domain (or Server).
Start JConsole using this format: JDK_HOME/bin/jconsole
For example:
/usr/java/bin/jconsole |
The JConsole Connect to Agent window is displayed.
Click the Remote tab and type the host name and port.
Click Connect.
In the Remote Process text box, specify the JMX Service URL.
For example:
service:jmx:rmi:///jndi/rmi://localhost:8686/jmxrmi |
Another host name can be substituted for localhost. The default port number (8686) could change if the jmx-connector configuration has been modified.
Click Connect.
In the JConsole window you will see all your MBeans, JVM information, and so on, in various tabs.
Browse Sun GlassFish v3 Prelude MBeans along with Platform MBeans.
Use either the Remote tab or the Advanced tab to connect to the Enterprise Server.
Specify the user name, password, administration server host, and JMS port number (8686 by default), and then select Connect.
Specify the JMXServiceURL as service: jmx:rmi:///jndi/rmi://host:jms-port/jmxrmi, and then select Connect. The JMXServerURL is printed in the server.log file and is displayed in the command window of the domain creation command.
For more information on JConsole, see http://java.sun.com/javase/6/docs/technotes/guides/management/jconsole.html.