tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leon Rosenberg" <rosenberg.l...@googlemail.com>
Subject Re: Performance monitoring for web applications
Date Sat, 09 Sep 2006 15:14:12 GMT
Rethinking my previous reply I now think what you want is possible,
even hard to achive. But if you measure the time spent in each
application in an amount of time you will get relative CPU usage for
those webapps; now measuring the cpu time for the VM in the same
amount of time (for example by executing ps via Runtime.exec()) you
can recalculate your relative values to absolute values. Don't know
how accurate it will be. Reading /proc/stat for the jvm process would
be probably more accurate.

regards
Leon

On 9/8/06, Shimol Shah <shimol@gmail.com> wrote:
> Hi,
>
> I am trying to look for a way to programmtically find CPU resources used and
> memory used for indivudual web applications. I have given it many tries on
> Google but only thing I could find was some third party tool vendors that
> give solutions to performance monitoring. Instead what I am looking for is
> the programmatic way of knowing CPU and memory usage by a particular web
> application.
>
> I would really appreciate if someone can point me to a right direction. I
> can work it out form there.
>
> Thanks,
> Shimol.
>
>

---------------------------------------------------------------------
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