Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. <gbean name="JMXService">
  2. <module name="org.apache.geronimo.configs/clustering//car">
  3. <module name="org.apache.geronimo.configs/tomcat6-clustering-builder-wadi//car">

    Note

    Adding load="false" attribute to the second entry will disable the clustering support in Geronimo. Right now, the clustering support requires the insecure JMX server to be running. If you need the clustering support, the insecure JMX server cannot be disabled.

Connect the Geronimo with JConsole

JConsole is a Java Management eXtension (JMX) compliant GUI tool that can be used to connect to a running Geronimo server instance. In JConsole, you will be able to monitor the JVM memory usage, threads stack trace, loaded classes and VM information as well as Geronimo MBeans. To securely connect to the JMX server on local Geronimo, do as followed:

  1. Startup the server with updated config.xml file;
  2. export GERONIMO_HOME with actual value;
  3. Start JConsole with following command line:
    Code Block
    
     	jconsole -J-Djavax.net.ssl.keyStore=$GERONIMO_HOME/var/security/keystores/geronimo-default
     	-J-Djavax.net.ssl.keyStorePassword=secret
     	-J-Djavax.net.ssl.trustStore=$GERONIMO_HOME/var/security/keystores/geronimo-default
     	-J-Djavax.net.ssl.trustStorePassword=secret
    
  4. In the New Connection dialog, enter the JMX URL as service:jmx:rmi:///jndi/rmi://localhost:1099/JMXSecureConnector, Username as system and Password as manager. Click Connect.

Image Added