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.

GC roots

The so-called GC (Garbage Collector) roots are objects special for garbage collector. Garbage collector collects those objects that are not GC roots and are not accessible by references from GC roots.

There are several kinds of GC roots. One object can belong to more than one kind of root. The root kinds are:

  • Class - loaded class. Classes can hold objects via static fields.
  • Stack Local - local variable or parameter of method.
  • Finalizer Queue Entry - object scheduled for finalization.
  • GC Handle - provides a means for accessing a managed object from unmanaged memory.
  • Other - objects hold from garbage collection by CLR for other reasons.

If an object is a root, it is specially marked in all views showing individual objects. For example, the following picture shows a fragment of paths view:

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.