Hello all, 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. I am looking to be able to say "Servlet A is using 2%CPU and 10 mb of heap and Servlet B is using 2% CPU and 200 mb of heap." I need to be able to do this because the company I work for uses a Tomcat server running 20 servlets. Occasionally, a servlet will begin consuming huge amounts of resources (either CPU or memory). Our only diagnostic tool tells us that Tomcat is consuming resources, it does not pinpoint the actual misbehaving servlet. One limitation is that recompiling all the current servlets is not really an option - there are just far too many developers involved. I would like the monitoring to be dynamic. So far I have been playing with Aspect Oriented Programming (AspectJ) to try and develop my own solution, but I figured I would ask if anybody knew of or already had something I might find useful.
Thanks so much! Tyler