Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Other plug-in-based monitoring software like Nagios or Icinga may need some help interacting with Tomcat's JMXProxyServlet. tools/check_jmxproxy.pl is a Perl script that can be used with these tools to monitor Tomcat via the JMXProxyServlet.

Exposing Tomcat application internals using JMX

It is possible to write custom MBeans that expose your Tomcat application internals through JMX. User-defined MBeans need to be registered with Tomcat MBean server. Once registered, user can access MBean and observe user-defined attributes and call user-defined operations, e.g.

  • JMX Bean: Counter:type=CounterManager
  • Attributes: currentTime, currentCount
  • Operations: resetCounter, resetCounter(int)

Example Application Exposing Internals Using JMX

...

CategoryFAQ