The web edition of hprof-analyzer,
a fast Rust-based tool for investigating Java OutOfMemoryErrors and memory leaks.
Your heap dump never leaves your machine — everything runs locally via WebAssembly.
🔍 Leak suspects, dominator tree & retained sizes
📊 Class histogram, GC roots, allocation sites
🧵 Thread stacks, locals, and per-thread objects
💬 SQL-like OQL query shell with tab-completion
🔒 Fully private — no upload, no server, no telemetry
Setup & Usage
Install the CLI
brew tap parttimenerd/hprof-analyzerbrew trust parttimenerd/hprof-analyzerbrew install hprof-analyzer
hprof-analyzer heap.hprof report.html # full HTML reporthprof-analyzer heap summary dump.hprof # top suspects + top classeshprof-analyzer heap histogram dump.hprof --limit 20hprof-analyzer heap query dump.hprof --oql "SELECT @displayName, COUNT(*) FROM INSTANCEOF java.lang.Object GROUP BY @displayName ORDER BY COUNT(*) DESC LIMIT 20"hprof-analyzer heap docs --topic examples # OQL language referencehprof-analyzer heap browse dump.hprof # dominator tree from roothprof-analyzer mat caches dump.hprof # list Eclipse MAT cache fileshprof-analyzer update nightly # update to latest build
First run caches analysis (~1–15 min); subsequent runs load in ~1 s.
Claude Code (MCP server)
Add hprof-analyzer as an MCP tool so Claude can load and analyze heap dumps directly.
claude mcp add hprof -- hprof-analyzer mcp
Then tell Claude: "Analyze the heap dump at /path/to/dump.hprof"
Claude will call get_session_info, load_dump, get_summary, and guide you through the investigation with OQL queries.
Cline / VS Code (MCP server)
In the Cline panel click MCP Servers → Add Server, or add directly to Cline's global MCP settings at ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json (Linux/macOS) or %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json (Windows):