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"
1 On Tue, Mar 17, 2009 at 7:28 PM, Jean-Noël Rivasseau <elvanor@g.o>wrote:
2
3 > 1) Can you try to update to Tomcat 6 ?
4 >
5 > 2) Did you deploy any web-app in your container? If yes, the problem is
6 > most likely due to your web-app (infinite loop most probably).
7 >
8
9 Try taking threaddumps (kill -3 <pid>) and watch the output. Perhaps you
10 can see from the dump where in your code (assuming it is the web application
11 code) the issue is.
12
13 If you take several dumps sequentially (with an interval of a few seconds)
14 you can try to parse the output with tools such as Samurai (Google for
15 "samurai thread analyzer").
16
17 Threaddump information is usually stored in the native standard out of the
18 java process.
19
20 Wkr,
21 Sven Vermeulen