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.

How do you out effects of YourKit on trends

Moderators: Vladimir Kondratyev, Anton Katilin

How do you out effects of YourKit on trends

Postby Michael.Scaman » Tue Apr 07, 2015 3:17 pm

If we see a trend like a growth of heap allocation, is there a way of ruling out whether the growth in memory or cpu use is the process of collection through YourKit or the application being monitored?

Is there a way to un attach YourKit and restart it fresh, for example, leaving the target running to try and rule out YourKit adding to the trend?
Michael.Scaman
 
Posts: 34
Joined: Mon Feb 02, 2015 3:14 pm

Re: How do you out effects of YourKit on trends

Postby Anton Katilin » Tue Apr 07, 2015 3:59 pm

If you suspect the YourKit adds more profiling overhead than you expect, could you please provide detail on what profiling mode(s) you are using and what startup options specify.

a growth of heap allocation

YourKit does not allocate many objects, temporary in particular, in Java heap. The only exception, under certain circumstances, may be the built-in probes obtaining monitored object properties (e.g. SQL query or web request URL) via the object's interface methods, some of implementations of whose may involve temporary object creation. However, this may happen only when the probes are active, i.e. when profiling is running.

cpu use

Again, we need to know what kind of profiling you're using. Please read more about the profiling overhead and how to avoid it here:
https://www.yourkit.com/docs/java/help/overhead.jsp

Is there a way to un attach YourKit and restart it fresh, for example, leaving the target running to try and rule out YourKit adding to the trend?

You may simply start the profiled application with YourKit profiler agent with the startup options recommended for production (please use the EE sever integration wizard) and do not activate any profiling modes, to see how the profiled application performance differs from the performance of the same application running without the profiler at all. Normally, you should not notice any difference.
Anton Katilin
 
Posts: 5576
Joined: Wed Aug 11, 2004 8:37 am

Re: How do you out effects of YourKit on trends

Postby Michael.Scaman » Tue Apr 07, 2015 6:17 pm

I am using the cli and it is specifically an increase in heap allocation. This is cpu profiling.


############# set to cpu sampling ############################################

java -jar $YjpJarLocation $HostProfiled $PortProfiled start-cpu-sampling

sleep 15m

# stop monitors

# cpu only in this script
java -jar $YjpJarLocation $HostProfiled $PortProfiled stop-cpu-profiling
Michael.Scaman
 
Posts: 34
Joined: Mon Feb 02, 2015 3:14 pm

Re: How do you out effects of YourKit on trends

Postby Anton Katilin » Wed Apr 08, 2015 10:51 am

Hi,

Some built-in probes are in Auto state by default, and start working when CPU sampling is started:
https://www.yourkit.com/docs/java/help/ ... probes.jsp

Please try to disable the probes with the agent startup option probe_off or probe_disable:
https://www.yourkit.com/docs/java/help/ ... sp#startup

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: No registered users and 11 guests