Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added information about ThreadPool.

...

Note

Version Warning

These JMX bean names are accurate for the current version of Tomcat 7 (7.0.28 37 at the time of this writing). If you are using a different version of Tomcat, you may have to adjust the names of the beans identified on this page.

...

This is the number of threads currently in the executor's thread pool. Obviously, this is only useful if you are using an <Executor> (which you are using, of course, right?).

Not using an Executor

  • Wiki Markup
    JMX Bean: {{Catalina: type=ThreadPool,name="\[depends\]"}}
  • Attributes: maxThreads, connectionCount

This information is largely useless in Tomcat 7, as an Executor is always used and the data can be found there, while the ThreadPool has only initial configuration information: the real-time data is available from the Executor's MBean.

Request Throughput

  • Wiki Markup
    JMX Bean: {{Catalina:type=GlobalRequestProcessor,name="\[depends\]"}}
  • Attributes: bytesSent, bytesReceived, errorCount, maxTime, requestCount
  • Operations: resetCounters

...

  • Wiki Markup
    JMX Bean: {{Catalina:type=Manager,context=\[context name\],host=\[hostname\]}}
  • Attributes: activeSessions, sessionCounter, expiredSessions

JNDI DataSource

  • Wiki Markup
    JMX Bean: {{Catalina:type=DataSource,context=/\[context name\],host=\[hostname\],class=javax.sql.DataSource,name="\[JNDI name\]"}}
  • Attributes: numActive, numIdle

...