sysautomation
asked on
Tomcat High CPU Load
I am running Tomcat 7 to use Jasper Reports on CentOS release 5.6 64 bit. Many times the CPU load avg on machine goes very high (above 4) and remains there unless I don't restart tomcat. Top shows java taking over 99% CPU.
This is only running Jasper Reports and no other Java apps are there. Is there a way to find out which report has made this running for that long?
This is only running Jasper Reports and no other Java apps are there. Is there a way to find out which report has made this running for that long?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Valeri - just be aware that that post is from 2004. So it's for ... Tomcat 4? In any case, Tomcat doesn't ship with the server.xml spec shown in that question. And there are not known problems with connectors going to 100% in Tomcat.
As I said, the likelihood is high that this is a database problem. Since the asker believes that the problem is in JasperReports, it could also be a problem with a bad report specification, but the db queries and handling is the place to start. Naive users of databases and Jasper also have a tendency to never close db connections, which will also take the system to 100% after a while.
As I said, the likelihood is high that this is a database problem. Since the asker believes that the problem is in JasperReports, it could also be a problem with a bad report specification, but the db queries and handling is the place to start. Naive users of databases and Jasper also have a tendency to never close db connections, which will also take the system to 100% after a while.
ASKER
Thanks.
http://www.coderanch.com/t/86515/Tomcat/Tomcat-Connector-high-cpu-usage