Re: CPU consumed by tomcat is always 100%

Sven Vermeulen <[email protected]> Wed, 18 Mar 2009 17:20:34 +0100
Newsgroups gmane.linux.gentoo.java
Message-ID <[email protected]>
On Tue, Mar 17, 2009 at 7:28 PM, Jean-Noël Rivasseau <[email protected]>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