jvm-mon icon indicating copy to clipboard operation
jvm-mon copied to clipboard

Top threads CPU miscalculation?

Open jerrinot opened this issue 8 years ago • 2 comments

image

How can I interpret the CPU and TotalCPU columns? The screenshot is from my laptop and it certainly has less than 10 or ever 8 CPU cores :)

jerrinot avatar Feb 09 '17 07:02 jerrinot

Will need to doublecheck but it should be:

  • CPU = current CPU utilization (in ratio to available cpu time on all processors)
  • TOTALCPU = CPU utilization (in ratio to process cpu consumption) since the thread is alive

https://github.com/patric-r/jvmtop/blob/master/doc/ExampleOutput.md

ajermakovics avatar Feb 09 '17 08:02 ajermakovics

I think eventually it would be better to integrate jvm-tools for thread stats. It has other nice properties such as showing the allocation rate.

ajermakovics avatar Feb 22 '17 15:02 ajermakovics