{scrollbar} |
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:
* On a Windows system |
set JAVA_OPTS=-Dcom.sun.management.jmxremote.port=<port> -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false |
* On a Linux system |
export JAVA_OPTS="-Dcom.sun.management.jmxremote.port=<port> -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false" |
_<port>_ is a free port on which you would like to enable this connection. |
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.
* On a Windows system |
set GERONIMO_HOME=<Geronimo_HOME> |
* On a Linux system |
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.
* On a Windows system |
jconsole \-J-D-Dorg.apache.geronimo.keyStoreTrustStorePasswordFile=%myDir%/KeystoreTrustSotrePasswordFile.key |
* On a Linux system |
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.