JMX and Tomcat: create and use MBeans in a servlet?

The Tomcat docs on monitoring describe how to enable JMX for Tomcat process's JVM. The short answer is you have to get the com.sun.management.jmxremote. * system properties set somehow -- either through the CATALINA_OPTS, or the start up script or the Windows service definition And have MBeans in your deployed app(s), of course.

Just attach the jconsole to your Tomcat process and you should be able to see any MBeans defined by your Servlet.

The Tomcat docs on monitoring describe how to enable JMX for Tomcat process's JVM. The short answer is you have to get the com.sun.management.jmxremote. * system properties set somehow -- either through the CATALINA_OPTS, or the start up script or the Windows service definition.

And have MBeans in your deployed app(s), of course.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions