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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to