Memory Analyzer

Download 0
Last updated Nov 15, 2025

mat-path2gc

Find paths from object to GC roots.

mat-path2gc address=ADDRESS [excludes=EXCLUDES] [limit=NUM] FILE_PATH
address=ADDRESS
Hexadecimal memory address of the object (e.g., 0x12345678)
excludes=EXCLUDES
Comma-separated list of class:field patterns to exclude (e.g., java.lang.ref.WeakReference:referent)
limit=NUM
Maximum number of paths to find (default: 30)

Output Fields

FieldTypeNameDescription
pathStringPathFully qualified class name of the object
shallow_heapLongShallow heapMemory size of the object itself in bytes
retained_heapLongRetained heapMemory size retained by this object in bytes