Can not show correct method time in sampling

Questions about YourKit Java Profiler
Post Reply
EstherLeonard
Posts: 2
Joined: Sun Sep 20, 2015 10:47 am

Can not show correct method time in sampling

Post by EstherLeonard »

My application is running on weblogic and creates multiple threads to process the request from client. While doing CPU profiling using YourKit, I observed that the information is not complete. The time shown in the YourKit is not matching with the one observed using application logs. Can someone please help me ?

We have also tried profiling even after integrating the weblogic server with YourKit but still the same issue.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Can not show correct method time in sampling

Post by Anton Katilin »

Sampling is approximate by its nature. Use tracing if you need exact times:
https://www.yourkit.com/docs/java/help/cpu_intro.jsp

Please also note that sampling by default measures CPU time for all methods except I/O:
https://www.yourkit.com/docs/java/help/times.jsp
You may try measuring wall time for all methods instead:
https://www.yourkit.com/docs/java/help/ ... ttings.jsp

Please also consider that some calls may by be hidden due to default filter settings:
https://www.yourkit.com/docs/java/help/filters.jsp

If nothing helps could you please provide detail, e.g. a screenshot demonstrating measured times as well as the expected values.
Post Reply