You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sean Laurent <se...@studyblue.com> on 2011/03/03 22:29:52 UTC

Tomcat JMX Monitoring - Busy Threads?

I'm trying to monitor Tomcat 6.0.29 using JMX. Specifically, I want to
monitor the number of active threads servicing requests so I can get
an alert if it approaches the maximum. While I have JMX monitoring
working in general, I can't seem to get the number of threads.
Everything I have read suggests looking at:

Catalina:type=ThreadPool,name=http-8080

And examining the currentThreadsBusy attribute. Unfortunately, I only
ever seem to get -1 as a value. I've tried it on five different Tomcat
instances and I always get -1.

Is there something I'm missing? Should I be looking at a different value?

-Sean

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat JMX Monitoring - Busy Threads?

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Sean Laurent [mailto:sean@studyblue.com] 
> Subject: Tomcat JMX Monitoring - Busy Threads?

> Catalina:type=ThreadPool,name=http-8080

> examining the currentThreadsBusy attribute. Unfortunately, I only
> ever seem to get -1 as a value.

Seems to work for me.  Are you using an <Executor>, by any chance?  If so, you'll need to look under the Executor type, not ThreadPool.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org