Fully featured low overhead profiler for Java EE and Java SE platforms.
Easy-to-use performance and memory .NET profiler for Windows, Linux and macOS.
Secure and easy profiling in cloud, containers and clustered environments.
Performance monitoring and profiling of Jenkins, Bamboo, TeamCity, Gradle, Maven, Ant and JUnit.

Profiling overhead: how to reduce or avoid

The profiler may add some overhead to the performance of applications you profile. This overhead may vary from virtually zero to significant, depending on the conditions described below.

Overhead of running an application with the profiler

The overhead depends on the profiling capabilities specified on the Welcome screen.

Enabling CPU tracing and/or object allocation recording adds overhead which is, however, acceptable for most applications.

If CPU tracing and object allocation recording are disabled, the overhead is virtually zero.

Overhead when measuring is performed

When CPU profiling or object allocation recording are running, the profiler adds extra overhead. After measuring is done and turned off, overhead should decrease to the initial level described above.

Tracing overhead is greater than sampling overhead.

Object allocation recording overhead depends on the number of recorded objects. To reduce the overhead, record fewer objects with the help of the "Record each..." constraints.

Snapshot capture

During the capture, the profiled application is paused. The time it takes to capture a memory snapshot depends on the heap size. Capturing memory snapshots of huge heaps takes more time because of the intensive use of the system swap file (if little free physical memory is available).

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.