tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Individual servlet statistics
Date Thu, 26 Jun 2008 16:25:07 GMT
> From: masterdewitt@gmail.com [mailto:masterdewitt@gmail.com]
> On Behalf Of Tyler DeWitt
> Subject: Individual servlet statistics
>
> I was curious if anybody knew of some software that
> tracked the memory and cpu usage of each servlet that
> was running on a Tomcat instance.

You can't directly get memory usage on a servlet basis, but any of the heap profilers can
capture the call stack at object allocation time; even the simple one that ships with the
JDK (hprof) will do that.  There's a noticeable performance impact, of course.

As far as CPU usage, pretty much all of the profilers (including hprof) can tell you how much
time is spent in individual methods, and this has less of an impact that heap monitoring.
 Also, the MoSKito package can insert code to observe CPU usage on a webapp basis; not sure
about individual servlets:
http://moskito.anotheria.net/howto/HowToMonitorExistingServletInTomcat.html

We've used Wily Introscope in the past with good results, but it ain't cheap.

Some recent tool updates from Sun might be of interest:
http://java.sun.com/performance/jvmstat/index.html

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message