Memory Analyzer

Download 0
Last updated Nov 15, 2025

mat-class2gc

Find GC root paths for class instances.

mat-class2gc class=CLASS [sample=SAMPLE] FILE_PATH
class=CLASS
Fully qualified class name to analyze (e.g., com.google.re2j.Inst)
sample=SAMPLE
Maximum number of instances to sample (default: 10)

Output Fields

FieldTypeNameDescription
pathStringGC root pathTree-formatted path from GC root to instance
countIntegerCountNumber of instances using this path
percentDoublePercentagePercentage of total paths