Tech > JConsoleTomcatRemoteMonitoring

JConsole Tomcat Remote Monitoring

1.  Download the appropriate version of catalina-jmx-remote.jar.  This is the
    location for Tomcat 6.0.26:

http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.26/bin/extras/

Tomcat startup:

e.g. /etc/default/tomcat6 on Debian

CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"

Tomcat server.xml:

  <Server
    <Listener className="org.apache.catalina.mbeans.JmxRemoteLifecycleListener"
        useLocalPorts="true" rmiRegistryPortPlatform="9993"
        rmiServerPortPlatform="9994"/>

Client:

$ ssh -l USERNAME -N -L 9993:localhos9993 -L 9994:localhost:9994 HOSTNAME

Add location of catalina-jmx-remote.jar to classpath

$ jconsole
-J-Djava.class.path=/usr/local/share/java/jdk1.6/lib/jconsole.jar: \
/usr/local/share/java/jdk1.6/lib/tools.jar: \
/opt/java/lib/catalina-jmx-remote.jar \
service:jmx:rmi://localhost:9994/jndi/rmi://localhost:9993/jmxrmi

References

-- Frank Dean - 18 Feb 2012

Related Topics: [TomcatTips](TomcatTips.html}