Hello, I am running a web site using tomcat 6.0 and am having a problem where tomcat's cpu utilization goes up to 95-97% and the response time for even simple page loads becomes very slow. If I use the manager app and reload a couple of webapps the load will drop back down to the usual 10% cpu utilization. I presume that I have a bug somewhere in my code that is starting to "spin" and eat up cpu time. Nothing on the site should take more than a few seconds of cpu time max.
When I look at the server stats it shows max processing time and a number that is several minutes. Is there any way to isolate which jsp page or servlet took so long to run? Is there a way to tell tomcat to log the cpu time taken by requests, or even better, log the requests that take more than some limit similar to the mysql slow query log? Or to set a limit on how long a request can run?
Any help would be appreciated.
LP
When I look at the server stats it shows max processing time and a number that is several minutes. Is there any way to isolate which jsp page or servlet took so long to run? Is there a way to tell tomcat to log the cpu time taken by requests, or even better, log the requests that take more than some limit similar to the mysql slow query log? Or to set a limit on how long a request can run?
Any help would be appreciated.
LP