Hi,
I would like to get some explanation about Thread Dump analysis:
if I group the threads by status, I can see the status (eg. Waiting), the number of thread in this status and the CPU Time.
What does it means ?
For instance :
Waiting -33 threads - 9046.49 ms
Time Waiting - 6025 threads -78960 ms
Runnable - 31 threads - 35000 ms
What means thread in status waiting use 9046.49 ms of CPU time ? Does it means that in this status, CPU spend 9046 ms to handle them ?
Furthermore for status Runnable I saw some thread processing code, in the documentation it is written that runnable means ready to run.
Thanks
Pierre
Answer by Andreas G. ·
Hi
The status of a thread is the state it was in at the time when you took the thread dump. The CPU Time is the total CPU Time this thread consumed since the thread was created. In your case it means that the 33 threads that are CURRENTLY in wait consumed 9s of CPU Time since these threads got created.
As for runnable: it means that these threads are ready to execute or are currently executing code. If the way it is documented is confusing we are happy to change that
Andi
JANUARY 15, 3:00 PM GMT / 10:00 AM ET