Home > Documentation > Configuring and administering > Monitoring the health of the Apache Geronimo server > Working 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 make Geronimo accessible to JConsole you can simply deactive both password authentication and secure socket layer (SSL) encryption:
set JAVA_OPTS=-Dcom.sun.management.jmxremote.port=<port> -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
export JAVA_OPTS="-Dcom.sun.management.jmxremote.port=<port> -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
jconsole
from <JDK_HOME>\bin
directory.<ipaddr>:<port>
for monitoring local server overall information, for example memories, threads, and VM summaries.service:jmx:rmi:///jndi/rmi://<ipaddr>:1099/JMXConnector
for monitoring Geronimo information in MBeans tab. In this case, tabs other than MBeans are inactive.ping
command.Password authentication over secure sockets layer (SSL) can be used to ensure that unauthorized persons cannot control or monitor your server. Before connecting to the secure JMX server in JConsole, you have to make a few configuration steps to disable the non-secure JMX server and start the jmx-security module.
set GERONIMO_HOME=<Geronimo_HOME>
export GERONIMO_HOME=<Geronimo_HOME>
<JDK_HOME>/bin/jconsole
via the following command. Note that the command has been split across several lines for readability. The command must be typed on a single line.
jconsole \-J-D-Dorg.apache.geronimo.keyStoreTrustStorePasswordFile=%myDir%/KeystoreTrustSotrePasswordFile.key
jconsole \-J-D-Dorg.apache.geronimo.keyStoreTrustStorePasswordFile=$myDir/KeystoreTrustSotrePasswordFile.key
/var/config/config-substitutions.properties
file. See Creating your keystorefile for SSL authentication for more details.service:jmx:rmi:///jndi/rmi://<ipaddr>:1099/JMXSecureConnector
ping
command.Bookmark this on Delicious Digg this | Privacy Policy - Copyright © 2003-2013, The Apache Software Foundation, Licensed under ASL 2.0. |