javaprofilingyourkit

CPU Usage on Sample meaning as well getting exact state time on Your Kit


I am profiling one app via Your kit profiler but unable to interpret following 2 things in Threads tab of Your Kit.

CPU Sampling

I tried going through documentation but was not able to find on this.


Solution

  • YourKit profiler agent samples thread states relatively rare (about 1 time per second). If some thread sleeps most of the time, there is a big probability that profiler finds this thread in "Sleeping" state when samples.

    But if thread consumed some CPU (during short wake-up), profiler will show this usage. It's not known what thread exactly did, but it is definitely known that thread did something. It is shown as a thin green stripe at the left side of state.