How to monitor getMaxThreads metrics with Introscope Java Agent for Tomcat Server.

Document ID : KB000017418
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

How to monitor getMaxThreads metrics under the ThreadPool Investigator area . This is for the Tomcat Server with Introscope Java Agent.

The ThreadPool node is displaying getCurrentThreadCount and getCurrentThreadBusy.

Information about getMaxThreads metrics is available at following location:
http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/tomcat/util/threads/ThreadPool.html#getMaxThreads()

Solution:

Introscope Java Agent for Tomcat Server can monitor getCurrentThreadCount and getCurrentThreadBusy metrics using tracers defined in tomcat.pbd.

However, Introscope Java Agent cannot monitor the getMaxThreads metric with the default tracers.

The best method to do this is monitoring the getMaxThreads metric via JMX. Note this is only available if getMaxThreads metric is available in the JMX API for Tomcat Server.