Click to See Complete Forum and Search --> : Tomcat CPU Havoc


faizsir
05-09-2007, 03:53 AM
Hi,

Problem:- tomcat process i.e java having CPU utilization 99%.

System Information:-

1) System is 2.6.9-34.0.1.ELsmp #1 SMP x86_64 x86_64 x86_64 GNU/Linux
2) No. Of CPU:- 2 AMD processor
3) Memory Information:-
free -m
total used free shared buffers cached
Mem: 2007 1990 17 0 26 87
-/+ buffers/cache: 1876 131
Swap: 4094 225 3868

4) Command line argument during process running state:-
ps -elf | grep tomcat
4 S root 16137 1 2 76 0 - 790869 - May06 ? 00:24:44 /usr/local/java/bin/java -jrockit -Xms1024M -Xmx1536M -Xgcpause -Xgcreport -Xgcarallel -verbose:gc -Djava.util.logging.manager=org.apache.juli.ClassLo aderLogManager -Djava.util.logging.config.file=/opt/servers/apache-tomcat-5.5.20/conf/logging.properties -Djava.endorsed.dirs=/opt/servers/apache-tomcat-5.5.20/common/endorsed -classpath :/opt/servers/apache-tomcat-5.5.20/bin/bootstrap.jar:/opt/servers/apache-tomcat-5.5.20/bin/commons-logging-api.jar -Dcatalina.base=/opt/servers/apache-tomcat-5.5.20 -Dcatalina.home=/opt/servers/apache-tomcat-5.5.20 -Djava.io.tmpdir=/opt/servers/apache-tomcat-5.5.20/temp org.apache.catalina.startup.Bootstrap start

5) I traced out java process during high cpu utilization with strace command. I found a lot futex system call. That mean system is waiting for something. I couldn't find out the exact problem.

Regards,
Faizsir

Carla Schroder
05-09-2007, 12:51 PM
Does this help?
http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/msg159067.html

Google is full of similar issues, with various causes, so it's not uncommon.

faizsir
05-10-2007, 10:33 PM
Thanks Carla.

Does this help?
http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/msg159067.html

Google is full of similar issues, with various causes, so it's not uncommon.