Satollo

20 Dec, 2007

Deadlocks in a Java Virtual Machines with Tomcat

Posted by: admin In: Programming

I had a problem with Tomcat which for time to time stop responding. Really it was an http connections exhausted situations. The first thing I did was to activate a second http connector int he port 81 (used by no one) to keep an access to the manager and take a look at the server status.

Yes, there was 150 connection open, some three days old...

Then, to discover the problem, I gave a kill -3 [jvm pid] that procude a stack trace of the threads int he catalin.out (System.out). If there is some deadlocks, they will be printed.There was deadlocks!!! They are caused by a bug in the mysql driver 3.1.12. changing the mysql drivers to the 5.1.x version solved my problem.

Another winning day.

Other articles: Tomcat 5, Java 6 on CentOS 5.2, Californian massage, Excel and CSV reader/converter for Java, Bookmark Me 1.1.7 released

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

No Responses to "Deadlocks in a Java Virtual Machines with Tomcat"

Comment Form

About

This is an example of a WordPress page, you could edit this to put information about yourself or your site so readers know where you are coming from.