Fully featured low overhead profiler for Java EE and Java SE platforms.
Easy to use performance and memory .NET profiler for Windows and Linux.
Performance monitoring and profiling of Jenkins, Bamboo, TeamCity, Gradle, Maven, Ant and JUnit.

Problem about YourKit version 15088.

Moderators: Vladimir Kondratyev, Anton Katilin

Problem about YourKit version 15088.

Postby beckam » Sun Aug 27, 2017 4:41 am

Hello all member!

I'm using YourKit build-15088 to profile an Eclipse RCP running with OpenJDK 8 on Linux. I tried to change the CPU tracing settings by removing the walltime entries. I did that to avoid profiling Thread.sleep(). The result is the same. I tried to reduce adaptive_min_method_invocation_count and adaptive_max_average_method_time_ns, and the result is the same. For CPU sampling, I tried to reduce the sampling period (thus increasing the event frequency) and the same result occurs. I have tried to find the solution over the internet but still find the cause.
The CPU tracing report shows that the time spent is inside java.lang.Thread.run(), but the stack trace is incomplete. The Callee List does not show the children of that method. I tried sampling instead of tracing and a similar result occurs.

Is there a bug that prevent YourKit to get a proper stack trace?

Thank's a lot!
Posts: 2
Joined: Sat Aug 26, 2017 7:40 am

Re: Problem about YourKit version 15088.

Postby Anton Katilin » Mon Aug 28, 2017 5:40 am


1. Version 2015 is no longer supported. Please use the latest version 2017.02 instead.
2. To remove sleep() time from the results please use the What-if feature:
the stack trace is incomplete
Please disable the filters: https://www.yourkit.com/docs/java/help/filters.jsp
Please note that the latest version allows you to expand particular filtered branches instead in call trees of editing filters or turning them off.
Anton Katilin
Posts: 6025
Joined: Wed Aug 11, 2004 8:37 am

Re: Problem about YourKit version 15088.

Postby Thorsten Goetzke » Mon Aug 28, 2017 10:03 am

Hello backam,

Have you attached the agent or did you enable it at startup? I remember that old versions of yourkit have a bug where the combination of attaching and tracing doesn't provide useful stacktraces..
Here's a mail from 2016

The problem was caused by the attach mode limitations AND some
optimization in CPU tracing mode.

From this topic:

The attach mode limitations:


No profiling results for some methods:

- JVM may not be able to apply bytecode instrumentation to methods
of the objects that have been created before the agent attached.
Instead, the old, non-instrumented version of the bytecode will
keep running for them. This is a limitation of the JVM.

- Another JVM limitation is that native methods of classes that have
loaded before the profiler agent attached cannot be instrumented at
all. (There is no problem with classes loaded after the profiler has

This means that their calls will be missing in:

- CPU tracing results (no problem for CPU sampling as it does not
depend on bytecode instrumentation)

- results of probes depending on instrumentation of those methods,
in particular, in the "Events" and "Performance Charts" views


It seems that the missing methods in the stacks of the mentioned
events were no running instrumented bytecode. In CPU tracing mode, the
events reuse known stack trace obtained with CPU tracing for
optimization purposes. It seems we should turn this optimization off
for attached agents.

By the way, there would be no problem with CPU sampling - you would
see full stacks for all events.

We'll make the fix in the next build. If you wish we can send you the
agent with the fix as soon as we build it.

Best regards,
Anton Katilin
Thorsten Goetzke
Posts: 13
Joined: Mon Aug 27, 2012 8:58 am

Return to Java Profiler

Who is online

Users browsing this forum: Google [Bot] and 1 guest


YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.