tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leandro Dardini" <>
Subject R: Monitor and report number of concurrent user
Date Thu, 04 Sep 2008 07:31:43 GMT

> -----Messaggio originale-----
> Da: Nix Hanwei [] 
> Inviato: giovedì 4 settembre 2008 5.19
> A: Tomcat Users List
> Oggetto: Monitor and report number of concurrent user
> Hi Gurus,
> May I know if there's scripts or suggestions for reporting 
> concurrent user in tomcat?
> Thanks in advance,
> wannabe

The easy and dirty way is to query the manager application and grab the current session, running
threads and other vars you are interested in. Be warned the manager application is not so
easy to parse.
The correct path instead is to use JMX. JMX can be used to monitor all aspect of tomcat, like
threads, sessions, etc. etc. If you use a jdk >= 1.5 then start adding
to your JAVA_OPTIONS and then look at
and for details. There is already a nagios probe to get data via jmx;d=1

I personally use the lambda probe application to monitor my tomcat farm from nagios. It is
way too easy to parse.


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message