profile_memory
Analyze JFR memory recordings to identify top allocators by bytes or count, view allocation stacks, and inspect OldObjectSample by class. Requires profile preset recording.
Instructions
JFR memory profile: top allocators by bytes/count, allocation stacks, OldObjectSample by class (allocation site, not GC roots). Pair with heap_live_histogram_diff, gc_efficiency, heap_dump+MAT. Requires profile preset recording.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "profile_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filepath | No | Path to .jfr file. Shortcuts: 'new_profile' (current, default) or 'old_profile' (previous). Or full path e.g. recordings/new_profile.jfr. | new_profile |
| topN | No | Maximum number of top allocators to return. Default: 10. | |
| sortBy | No | Primary ranking for topAllocators. Default: bytes. | bytes |