> -----Original Message-----
> From: Stijn Vanhoorelbeke [mailto:stijn.vanhoorelb...@gmail.com] 
> 
> 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.

See: http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html

--Eric











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: http://www.policypatrol.com/

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

Reply via email to