sharphy_inspect_heap
Inspect managed heap allocations, generation sizes, fragmentation, and object leak retainers in a .NET memory dump to diagnose high memory usage, memory leaks, or OutOfMemoryException.
Instructions
Inspects managed heap allocations, generation sizes (Gen 0/1/2, LOH, POH), fragmentation, and object leak retainers in a memory dump. Use this tool when diagnosing high memory usage, memory leaks, or OutOfMemoryException. Do NOT use for general crash RCA (use 'sharphy_analyze_dump') or thread lock cycles (use 'sharphy_deadlock_detector'). Non-destructive, read-only inspection.
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": {
"dumpPath": "<dumpPath>"
},
"name": "sharphy_inspect_heap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dumpPath | Yes | Absolute path to the target memory dump file (.dmp) | |
| topObjects | No | Top N object types ranked by total memory size |