analyze_heap_histo
Detect memory leaks, object creation hotspots, and classloader leaks by parsing jmap -histo output.
Instructions
Parse jmap -histo output and detect memory leak candidates, object creation hotspots, classloader leaks, and heap composition issues.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"histo": "<histo>"
},
"name": "analyze_heap_histo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| histo | Yes | The jmap -histo output text. Use `jmap -histo:live <pid>` for leak detection — the :live flag forces a full GC first so only reachable objects appear, giving the clearest signal for leaks. Use `jmap -histo <pid>` (without :live) for a cheaper snapshot that includes unreachable objects not yet collected. |