tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Monitor session count & request time.
Date Fri, 11 Feb 2011 20:30:35 GMT
-----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


Mime
View raw message