This week's book giveaway is in the OCP forum. We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests and have Scott Selikoff and Jeanne Boyarsky on-line! See this thread for details.
Our tomcat is hosting a couple JSP and Servlet that would make connection to SQLServer and calling xalan to parse XML. We checked our code to make sure all database connections are closed. However, after a few days, tomcat will use up all the cpu and has to be restarted. Any idea where we should look at to find out what the problem is? Thanks.
I doubt that this is really a Tomcat error it's much more likely to be a 'feature' of your application. The most frequent cause of 100% CPU useage is a loop that never terminates. Have a look for while() loops whose exit condition is never being set. I think your statement about DB connections is a bit of a false trail. If you run out of DB connections applications tend to freeze and you don't usually see a high CPU useage
Andy Bowes<br />SCJP, SCWCD<br />I like deadlines, I love the whoosing noise they make as they go flying past - Douglas Adams
Slideshow boring ... losing consciousness ... just gonna take a quick nap on this tiny ad ...