tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MSerraInsiel <milena.se...@insiel.it>
Subject Re: Tomcat CPU 100%
Date Fri, 20 Mar 2009 14:48:16 GMT

java is 1.4.2, the SO is Linux, but we could not dump the comsuming thread
because of teh -Xrs option. Now we removed it, but we have old libraries and
no CPU problem. In an identical test environment the same problem does not
arise, even with -Xrs option and new libraries version.

Any ideas?

Thanks



Christopher Schultz-2 wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> MSerraInsiel,
> 
> On 3/20/2009 5:40 AM, MSerraInsiel wrote:
>> Hi all, We have a java web application (deployed on Tomcat 5.5 with java
>> 1.4)
>> that has never had CPU problems.
> 
> Take thread dumps while the CPU is pegged. You didn't mention your Java
> version, so here goes:
> 
> - - If you have Java 1.5+, you should have the 'jstack' program. Run
>   that targeting the pid of the top-level Java process and you should
>   get a complete thread dump.
> 
> OR
> 
> - - On UNIX, send a SIGSTOP to the main java process and look at the
>   output in catalina.out.
> 
> OR
> 
> - - On Windows, you'll need to press CTRL-\ when running Tomcat from the
>   command-line. I'm not sure how else to get a thread dump from java
>   on Windows, so if you're running it as a service, you might have to
>   stop Tomcat, re-start it from the command line (startup.bat) and
>   then press CTRL-\ after your CPU goes high.
> 
> Take thread dumps a few seconds apart, then examine them. Threads that
> say "BLOCKED" are not using any CPU (at least, not at the time the
> thread dump was taken). Anything that says "RUNNABLE" should be
> inspected to see what it's doing.
> 
> Post your thread dumps to the list if you can't figure out what's going
> on.
> 
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAknDqpsACgkQ9CaO5/Lv0PAWEwCfcQ3n9YoOFKElIWqdgjf01WHZ
> U8EAn32cdrguG0RUOTGoUCm6vJZV9ozr
> =woZD
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Tomcat-CPU-100--tp22617067p22621751.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Mime
View raw message