Gentoo Archives: gentoo-java

From: Sven Vermeulen <sven.vermeulen@××××××.be>
To: gentoo-java <gentoo-java@l.g.o>
Subject: Re: [gentoo-java] CPU consumed by tomcat is always 100%
Date: Wed, 18 Mar 2009 16:20:37
Message-Id: 6de0e7060903180920j55b26118gf8ae12f5941d1a4d@mail.gmail.com
In Reply to: Re: [gentoo-java] CPU consumed by tomcat is always 100% by "Jean-Noël Rivasseau"
On Tue, Mar 17, 2009 at 7:28 PM, Jean-Noël Rivasseau <elvanor@g.o>wrote:

> 1) Can you try to update to Tomcat 6 ? > > 2) Did you deploy any web-app in your container? If yes, the problem is > most likely due to your web-app (infinite loop most probably). >
Try taking threaddumps (kill -3 <pid>) and watch the output. Perhaps you can see from the dump where in your code (assuming it is the web application code) the issue is. If you take several dumps sequentially (with an interval of a few seconds) you can try to parse the output with tools such as Samurai (Google for "samurai thread analyzer"). Threaddump information is usually stored in the native standard out of the java process. Wkr, Sven Vermeulen