Fully featured low overhead profiler for Java EE and Java SE platforms.
Ultimate profiling and monitoring solution for Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

Help understanding the CPU view

Moderators: Vladimir Kondratyev, Anton Katilin

Help understanding the CPU view

Postby merz » Thu Jul 02, 2015 12:19 pm

Hi,

Why does the CPU view contains just a few threads ?

Example, this snapshot was taken with the default settings (sampling_period_ms=20)
Image
http://img42.com/oFah4

And here is the thread view (without internal threads) of this snapshot:
Image
http://img42.com/KV50b

For example the CPU view does not contains:
- "SocketServer_/127.0.0.1:49534.MainThread"
- "Swing-Shell"
- "Thread-115"
etc

Thanks
merz
 
Posts: 1
Joined: Thu Jul 02, 2015 10:03 am

Re: Help understanding the CPU view

Postby Anton Katilin » Thu Jul 02, 2015 3:18 pm

Hello,

The first picture shows CPU sampling results. They include only the threads for which non-zero CPU time has been measured. Threads with zero CPU time, i.e. most of their time being in the waiting state, will not be included. Please see the second picture - many of the threads indeed have zero time.

Also, please note there is a pseudo-thread "<Oldest finished threads>". By default, CPU profiling (i.e. of CPU sampling or CPU tracing) results are kept for up to 50 recent finished threads; results of older finished threads are merged to "<Oldest finished threads>". This limit is controlled with the startup option "deadthreadlimit": https://www.yourkit.com/docs/java/help/ ... ptions.jsp

Please note that the second picture shows a telemetry graph. Telemetry buffer is 1 hour by default - see startup option "telemetrylimit".

Best regards,
Anton
Anton Katilin
 
Posts: 5576
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 5 guests

cron