Link to home
Start Free TrialLog in
Avatar of Zack
ZackFlag for Australia

asked on

How to monitor the number of connections/threads being utilized on Tomcat 6.0

Heyas,

How would I go about monitoring and logging the number of 'acceptCount' and 'maxThreads'  on a Tomcat 6.0 service running on Windows Server 2008 R2?

https://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html

http://tomcat.apache.org/tomcat-6.0-doc/monitoring.html

Read through these but couldn't find anything definitive something that comes close is: https://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Server_Status

http://community.jaspersoft.com/wiki/how-connect-jconsole-tomcat-running-service

This tool can monitor the 'maxthreads' now I am just looking for 'acceptCount'

Any assistance is appreciated.

Thank you.
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

This tool can monitor the 'maxthreads' now I am just looking for 'acceptCount'

Not sure what you mean by 'monitoring'. acceptCount is an absolute number
Avatar of Zack

ASKER

Hi CEHJ,

What I mean by monitoring is how do I determine the current value of acceptcount at any given time.

Thank you.
If you mean how many connections are waiting, then you might be able to turn up logging to see the queue length. What is your goal?
Avatar of Zack

ASKER

Hi CEHJ,

My goal is to determine Tomcat is hitting it's maximum amount of allowed  'acceptCount' and 'maxThreads' at any one time.

Thank you.
I would look into the logging of the internal classes involved in those queues then
Avatar of Zack

ASKER

Hi CEHJ,

I don't the Java source code for the application, any other suggestions?

Thank you.
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Zack

ASKER

Thank you for your assistance.