tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robinson, Eric" <>
Subject RE: Monitor session count & request time.
Date Sat, 12 Feb 2011 00:07:33 GMT
> -----Original Message-----
> From: Stijn Vanhoorelbeke [] 
> Hi,
> I'm using Solr on my Tomcat 6 system. How can I measure how 
> much sessions there are active?
> I could find such info through Tomcat manager 
> (manager/html/sessions?path=/solr). But that shows up ALL the 
> sessions of the past 10 min. I only want to measure active sessions.

Maybe I'm just too old school, but what's wrong with...

# netstat -antp|grep java|grep ESTAB|wc -l

> Also, is there a way to measure the respons time, needed to 
> satisfy a request? This must be no log file ( too much 
> overhead to log all requests ), but just lets say retrieve 1 
> request/respons time per minute.

I use the %D parameter in the pattern string of the AccessLogValve
section of server.xml. It puts the response time in every entry in the
jasper logs. Then I run a script to parse the logs and give me a nice
little breakdown of response times.



Disclaimer - February 11, 2011 
This email and any files transmitted with it are confidential and intended solely for Tomcat
Users List. If you are not the named addressee you should not disseminate, distribute, copy
or alter this email. Any views or opinions presented in this email are solely those of the
author and might not represent those of Physicians' Managed Care or Physician Select Management.
Warning: Although Physicians' Managed Care or Physician Select Management has taken reasonable
precautions to ensure no viruses are present in this email, the company cannot accept responsibility
for any loss or damage arising from the use of this email or attachments. 
This disclaimer was added by Policy Patrol:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message