-
1. Re: JBoss 5.1 %100 CPU Usage
jithu.mada Dec 6, 2010 11:16 AM (in response to odtufatih)JVisualVM might be helpful in identifying the problem.
-
2. Re: JBoss 5.1 %100 CPU Usage
peterj Dec 6, 2010 6:17 PM (in response to odtufatih)Take a JVM thread dump. See: http://java.sun.com/developer/technicalArticles/Programming/Stacktrace/
-
3. Re: JBoss 5.1 %100 CPU Usage
f_marchioni Dec 7, 2010 6:30 AM (in response to odtufatih)Have a look from the jmx-console at the MBean org.jboss.system.server.ServerInfo of the jboss.system domain.
It has a method listThreadCpuUtilization which might help you to find out the bottleneck.
Regards
Francesco
-
4. Re: JBoss 5.1 %100 CPU Usage
odtufatih Dec 7, 2010 6:58 AM (in response to f_marchioni)Thank you Francesco, but listThreadCpuUtilization shows the time each thread id consumed from cpu cumulatively.
How can this be helpful ?
-
5. Re: JBoss 5.1 %100 CPU Usage
odtufatih Dec 7, 2010 7:01 AM (in response to jithu.mada)Thank you Jithu,
I will have a look at JVisualVM, I wonder if it will show me CPU being used thread by thread.
-
6. Re: JBoss 5.1 %100 CPU Usage
f_marchioni Dec 7, 2010 8:59 AM (in response to odtufatih)The information dumped by listThreadCpuUtilization needs to be merged with the Thread Stack Trace. In other words you discover first which Thread is consuming more time and then see what is doing the Thread, through its stack trace.
-
7. Re: JBoss 5.1 %100 CPU Usage
odtufatih Dec 7, 2010 9:33 AM (in response to f_marchioni)I mean listThreadCpuUtilization displays a thread id's total time, each time a thread with that id works the time is added to the total time.
The thread(id) that took the most time may not even be active currently, and getting a stack trace is possible for only active threads, am I wrong ?
Even that thread id is active currently, the stacktrace for the thread id will only show me what it is doing at that time, probably a normal operation ?