Connecting to Geronimo 1.1 with JConsole
Here is a really short recipe to connect the standard Java 5 JMX Console, JConsole, to a Geronimo 1.1 instance.
First, if you are running Geronimo in a Java 5 VM then you should start it like this:
% cd geronimo-1.1 % java -Dcom.sun.management.jmxremote -jar bin/server.jar
Or, if you start geronimo using the geronimo.sh script then you should set the JAVA_OPTS environment variable.
% cd geronimo-1.1 % export JAVA_OPTS=-Dcom.sun.management.jmxremote % bin/geronimo.sh start
This extra option makes the VM also available through JMX so that you can get things like memory usage and thread count. Otherwise you can just see the MBeans exposed by Geronimo.
If you run both Geronimo 1.1 and JConsole under Java 5 on the same machine then JConsole will also automatically detect the Geronimo process. Otherwise, connect to the instance by using the following settings in JConsole. These are under the ‘Advanced’ tab of the New Connection dialog.
JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/JMXConnector User Name: system Password: manager
Just change localhost, system and manager to whatever is appropriate for you.
Happy JMXing!
Modified
