* Mark Stevens wrote (24/07/07 11:32):
Hi all,

Sorry if this has been covered already in other posts,

I'm fishing for some tips to debug an intermittent issue with Tomcat load.

My JRE:java version "1.3.1_14"

The server is running Oracle, Tomcat, Apache 2.2 and a Content
Management System, Operating system is Solaris 8 running on sun4u Sun
Fire V240 with 4GB of RAM.


Every so often the java process for Tomcat consumes an entire CPU, and
requires Tomcat to be killed, and then restarted, this is happened
quiet load with only a couple of HTTP requests coming through every
second.

I'm wondering if this down to code, or just not having enough free
RAM, Xms and Xmx are both set to 1024M, I've heard it's not good to
set Xms too high.


Anyhow, can anyone suggest a good, and easy to use tool to profile my
webapps memory and CPU usage,  I've had a quick look at J-Profiler,
but was wondering if there were any other favorites amongst the group
users.

I experienced these exact symptoms and reported it here:
http://issues.apache.org/bugzilla/show_bug.cgi?id=42925.

Are you using sendfile (default when using Apache Portable Runtime)? Removing that was the workaround for me, and it's still working fine. However, my setup is different, so it's possible that this is a red herring, but I might as well mention it.

You could also have a look at this thread with some different problems that might be more Solaris-related:

http://mail-archives.apache.org/mod_mbox/tomcat-users/200609.mbox/[EMAIL 
PROTECTED]

For debugging, I found that getting thread dumps (kill -3) worked fairly well, though it took me quite a while to work out how to use them. I could use ps or top to find that one thread was the problem, and get the thread id, then cross-reference that to the thread dump to find which thread it was. It was always sendfile, which uses native code, so I just removed it from the config. Problem not solved, but there you are.

Chris

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