tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johnny Kewl" <j...@kewlstuff.co.za>
Subject Re: Current thread count monitoring
Date Wed, 14 May 2008 20:19:14 GMT

---------------------------------------------------------------------------
HARBOR: http://coolharbor.100free.com/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
---------------------------------------------------------------------------
----- Original Message ----- 
From: "Amit Bhargava" <amit.bhargava@heraldlogic.com>
To: <users@tomcat.apache.org>
Sent: Wednesday, May 14, 2008 1:43 PM
Subject: Current thread count monitoring


> Hi,
>
> I'm new to Tomcat monitoring. I have an installation of Tomcat 5.5 on 
> Windows 2003 server. I am trying to monitor Tomcat using JConsole (part of 
> JDK 6). Could someone please tell me how I can get the current thread 
> queue length in Tomcat?
>
> Regards,
> Amit

You have to add something like this to Java Opt
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port="9004"
-Dcom.sun.management.jmxremote.authenticate="false"
-Dcom.sun.management.jmxremote.ssl="false"

Enter in the Java Tab of the service console, if you using a windows 
service.

Then TC knows you want to JMX

Then in the JDK/bin you start JConsole
tell it Remote localhost:9004

Then stuff will start happening...
Look at Mbeans Tab
Catalina/Threadpool/http-8080/attributes
and choose the thread details you need.
CurrentThreadCount
CurrentThreadBusy

etc...

>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
> 


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


Mime
View raw message