public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-java] CPU consumed by tomcat is always 100%
@ 2009-03-17 17:33 Kaushal Shriyan
  2009-03-17 18:28 ` Jean-Noël Rivasseau
  0 siblings, 1 reply; 3+ messages in thread
From: Kaushal Shriyan @ 2009-03-17 17:33 UTC (permalink / raw
  To: gentoo-java

[-- Attachment #1: Type: text/plain, Size: 289 bytes --]

Hi,

I am running the below software on gentoo OS.

Sun JDK 1.5.0.12 [sun-jdk-1.5]
[I--] [M ] www-servers/tomcat-5.0.27-r6 (5)

The issue is that the CPU consumed by tomcat is always 100%.while using top
command

Kindly provide me the steps to debug the issue

Thanks and Regards

Kaushal

[-- Attachment #2: Type: text/html, Size: 341 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-java] CPU consumed by tomcat is always 100%
  2009-03-17 17:33 [gentoo-java] CPU consumed by tomcat is always 100% Kaushal Shriyan
@ 2009-03-17 18:28 ` Jean-Noël Rivasseau
  2009-03-18 16:20   ` Sven Vermeulen
  0 siblings, 1 reply; 3+ messages in thread
From: Jean-Noël Rivasseau @ 2009-03-17 18:28 UTC (permalink / raw
  To: Kaushal Shriyan, gentoo-java

[-- Attachment #1: Type: text/plain, Size: 607 bytes --]

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).

Elvanor

Kaushal Shriyan wrote:

On Tue, Mar 17, 2009 at 6:33 PM, Kaushal Shriyan
<kaushalshriyan@gmail.com>wrote:

> Hi,
>
> I am running the below software on gentoo OS.
>
> Sun JDK 1.5.0.12 [sun-jdk-1.5]
> [I--] [M ] www-servers/tomcat-5.0.27-r6 (5)
>
> The issue is that the CPU consumed by tomcat is always 100%.while using top
> command
>
> Kindly provide me the steps to debug the issue
>
> Thanks and Regards
>
> Kaushal
>

[-- Attachment #2: Type: text/html, Size: 937 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-java] CPU consumed by tomcat is always 100%
  2009-03-17 18:28 ` Jean-Noël Rivasseau
@ 2009-03-18 16:20   ` Sven Vermeulen
  0 siblings, 0 replies; 3+ messages in thread
From: Sven Vermeulen @ 2009-03-18 16:20 UTC (permalink / raw
  To: gentoo-java

[-- Attachment #1: Type: text/plain, Size: 746 bytes --]

On Tue, Mar 17, 2009 at 7:28 PM, Jean-Noël Rivasseau <elvanor@gentoo.org>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

[-- Attachment #2: Type: text/html, Size: 1032 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-03-18 16:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-17 17:33 [gentoo-java] CPU consumed by tomcat is always 100% Kaushal Shriyan
2009-03-17 18:28 ` Jean-Noël Rivasseau
2009-03-18 16:20   ` Sven Vermeulen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox