heap_histogram
Diagnose JVM memory issues by identifying the objects that consume the most heap space. Returns the Top-N heap histogram for a process, showing which object types use the most memory.
Instructions
堆内对象占用 Top-N。
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": {
"pid": "<pid>"
},
"name": "heap_histogram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | ||
| top | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |