tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Crowther <peter.crowt...@melandra.com>
Subject Re: 100% CPU by java process in Tomcat
Date Thu, 20 Aug 2009 09:24:03 GMT
2009/8/20 Phani Raj Kumar <bphanirajkumar@gmail.com>
> Here is the info:
> *JDK version* : j2sdk1.4.2_11

This is old, though that probably isn't the cause of this problem.  Do
you need to run this JDK, or can you upgrade?

> *Tomcat Version*: jakarta-tomcat-5.0.28

This is no longer supported, though that probably isn't the cause of
the problem.  Do you need to run this version, or can you upgrade?

> *OS*: SunOS burton 5.8 Generic_117350-46 sun4u sparc SUNW,Sun-Fire-V440
> *CATALINA_OPTS*="-Xms64m -Xmx256m"
>
> I didn't get any error messages in the log, but even running the tomcat
> alone without any applications in it taking 100% cpu.

OK, that's interesting.  Something odd is happening!

The next step is to take a thread dump and find out what's running.
Use ps to find the process ID of the Java process that's running
Tomcat, then send it a SIGQUIT (kill -3 <pid>).  The thread dump
should appear in one of the log files, probably catalina.out (from
memory) unless you've changed the logging.

There will be several threads in the thread dump - some blocked, some
running.  If you post the thread dump here, we can take a look at it.
You will need to include it in your mail message, as the mailing list
software strips out attachments.

- Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message