Many thanks for all the suggestions. I found a simple tool called StackTrace 
from http://www.adaptj.com/root/main/tracehowtos#ht0 to help me take thread 
dumps from Tomcat. I found when the CPU load was high that there was a thread 
from the suspect web app running. In contrast, thread dumps taken when CPU load 
was normal showed no such threads. The line that the web app thread was running 
at is a simple - data += "\n"; - this is in a loop collecting form data from 
hidden vars created by JavaScript code. It's been suggested by ny colleagues 
that the JVM could be running out of memory since a new String object is 
created for each +=. The String data ends up being very long anyway. Any 
thoughts on this would be appreciated.
Also, would anyone know how to monitor Tomcat's I/O activities? I understand 
that thrashing could be a drain on memory resources.
Thanks again for everybody's help!

bob

-----Original Message-----
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 06, 2007 9:21 AM
To: Tomcat Users List
Subject: Re: [OT] Tomcat causing high CPU load


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Charlie,

Charlie Wingate wrote:
> There is a kill.exe (older version in resource kits) and a newer
> taskkill.exe included with XP [onward]

Note that taskkill.exe and UNIX kill are completely different. taskkill
actually kills tasks, while the UNIX kill sends signals to processes.

> but neither of them will provide a
> stack dump/trace.

That is because of the lack of signaling ability of taskkill.exe.

> Although they are very useful as tools and "parts".

Definitely. I had no idea this program existed. My experience with MS
Windows is that programs kill themselves frequently enough that I
probably will continue to never need this tool ;)

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHMIZp9CaO5/Lv0PARApJmAJ4p55P3qwyLtMmLDVlc6jyPayhQ2wCgh//n
zSjOq8EFoYEqbQz9ZLqq0bE=
=poDw
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to