You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Stijn Vanhoorelbeke <st...@gmail.com> on 2011/02/11 17:09:12 UTC
Monitor session count & request time.
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.
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.
Thank you,
RE: Monitor session count & request time.
Posted by "Robinson, Eric" <er...@psmnv.com>.
Disregard that last email. If I had paid attention, I would not have
skipped right past the part where it was about Solr. :-|
--
Eric Robinson
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Monitor session count & request time.
Posted by "Robinson, Eric" <er...@psmnv.com>.
> -----Original Message-----
> From: Stijn Vanhoorelbeke [mailto:stijn.vanhoorelbeke@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Monitor session count & request time.
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Stijn,
On 2/11/2011 11:09 AM, Stijn Vanhoorelbeke wrote:
> 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.
Tomcat exposes lots of information via JMX. Connect using JConsole and
look at the "MBeans" tab to poke around and see what's there.
> 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.
This may be a tough thing to do without introducing a bottleneck. I
think you'll have to do it yourself using something like a Valve or a
filter, or even by modifying/subclassing the AccessLogValve to record
only once per minute instead of all requests.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk1VnGsACgkQ9CaO5/Lv0PAXXwCePvftNuIE2i9L2hdbMrvpCcCg
IZgAn0OMEsEEB8MSOjlyO2rhRhhn6pTp
=8N6s
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Monitor session count & request time.
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Stijn Vanhoorelbeke [mailto:stijn.vanhoorelbeke@gmail.com]
> Subject: Monitor session count & request time.
> is there a way to measure the respons time, needed to satisfy
> a request?
Take a look at this:
http://moskito.anotheria.net/
Measures more than you can possibly think of...
- 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