Thursday, January 31, 2013

Tomcat with JMX

If you want to add JMX capability to your tomcat, do the following:


in your $tomcat/conf/server.xml, add the following (in bold)


<Server port="8005" shutdown="SHUTDOWN">
  <Listener className="org.apache.catalina.mbeans.JmxRemoteLifecycleListener"   miRegistryPortPlatform="10099" rmiServerPortPlatform="9595" />




In addition, add to your $tomcat/lib/ directory the JAR that gives this JMX capability , called catalina-jmx-remote.jar
I can see that you can find it here:





No comments: