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
| Field | Type | Name | Description |
|---|---|---|---|
| path | String | Path | Fully qualified class name of the object |
| shallow_heap | Long | Shallow heap | Memory size of the object itself in bytes |
| retained_heap | Long | Retained heap | Memory size retained by this object in bytes |