[jboss-user] [Performance Tuning] - Identifying the thread that is eating up my CPU
mattlf
do-not-reply at jboss.com
Thu Jan 8 07:51:09 EST 2009
Hi
I need a little bit of help to get started
I use jboss4.2.2 with Jboss Messaging 1.4.0 SP3
My application is eating up 100% CPU and I am trying to find out which thread is responsible for it
When I run htop and I sort by CPU usage I see that my application created many threads and especially 2 of them eating up the CPU
PID User PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command
21997 root 16 0 2080M 1403M 129M S 100 18.3 5h35:28 /usr/lib/jvm/java-1.5.0-sun/bin/java -Dprogram.name=run.sh -server -Xms1024 -Xmx1024 -Dsun.rmi.dgc.client.gcInterval=3600000 ...........
21998 root 17 0 2080M 1403M 129M R 92.8 18.3 4h28:52 /usr/lib/jvm/java-1.5.0-sun/bin/java -Dprogram.name=run.sh -server -Xms1024 -Xmx1024 -Dsun.rmi.dgc.client.gcInterval=3600000 ...........
All other threads related to this application have CPU = 0%
When I run jps, I see
26596 Jps
21997 Main
When I run jstack 21997 > /tmp/jstack.21997 and view jstack.21997 then I don't see any information related to PID 21998
Why is that? I am trying to get an understanding of what the thread 21998 is doing but why can't I see anything about it in the jstack dump of the process 21997 ?
I would appreciate any help
Thank you
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200327#4200327
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4200327
More information about the jboss-user
mailing list