By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,696 Members | 1,424 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,696 IT Pros & Developers. It's quick & easy.

Apache tomcat 6.0.13: finding resource hogs

P: 1
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
Sep 19 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.