Open-source heap forensics for Java
Stop Java memory leaks from stealing engineering days
Heap Hunter reads production HPROF dumps on any machine, with no JVM and no GUI, and gives AI agents the context to root-cause leaks in minutes.
-
Agentic by design. Every command speaks JSON, and
hunt mcpexposes the whole toolkit to AI agents. - Built for big dumps. A streaming external-sort indexer with a fixed memory budget handles multi-gigabyte heaps without swapping.
- Leak paths, not guesses. Trace any object to its GC root and rank retainers by retained size.
- Runs where you are. One static binary for Linux, macOS, and Windows, at home in CI pipelines and air-gapped boxes.
Heap Hunter is our flagship product: the heap forensics we run on production incidents, shipped as open source.
Read the documentation
Indexing, object queries, reference tracing, dominators, and the MCP server.
A full leak diagnosis, from index to retention chain, in one sitting.
Work with the team behind Heap Hunter
We are Semaclix, a backend development agency that builds projects from zero to production. Heap Hunter, our flagship product, is the crash management engine we built for huge Java production leaks.
Beyond it we take greenfield builds and scalable backend engineering, so your team moves faster without breaking things.
What people ask about Heap Hunter
Straight answers about the tool, the workflow, and how AI agents use it.
What is Heap Hunter?
Heap Hunter is an open-source, memory-bounded analyzer for Java HPROF heap dumps. It builds a persistent on-disk index of the heap graph and answers object, reference, and retention questions from a single native binary, with no JVM, GUI, or network access required.
How do I find a Java memory leak from a heap dump?
Index the dump with hunt index, build the overview cache, then trace: histogram finds suspicious classes, sample decodes representative instances, roots shows the shortest path from a leaking object back to its GC root, and retainers ranks objects by retained size.
Does Heap Hunter need Java or a JVM to run?
No. The hunt binary is self-contained and written in Zig. It parses the HPROF format directly, so it runs on production machines that have no JVM installed, no GUI, and no network access.
How do AI agents use Heap Hunter?
The command hunt mcp starts a Model Context Protocol server over stdio that exposes 14 tools, from analyze_heap_dump to top_retainers. Coding agents and LLM clients can index a dump and run retention queries directly from their tool loop using newline-delimited JSON-RPC 2.0.
What is the difference between retained size and shallow size?
Shallow size is the object's own byte footprint. Retained size is how many bytes would be freed if the object became garbage. The retained command reports both, and the retainers command lists the objects holding the most heap, which is usually where a leak lives.
How large a heap dump can Heap Hunter analyze?
Multi-gigabyte dumps. A streaming external-sort indexer keeps memory bounded by a configurable budget (default 4 GiB) regardless of dump size, and heap-segment scanning is parallelized across all CPU cores with per-worker spill files.
From the Heap Hunter blog
Notes on AI agents, Java internals, and building tools that give engineering time back to your team.
Heap Hunter End-User Guide
Index Java heap dumps, query objects, trace GC roots, rank retained sizes, and drive it all from AI agents over MCP.
Scrutinizing the cliche “It’s about the design, not the code”
High-Performance Problem Solving,On a Small Budget!!
Making Claude Code Powerful: A Consolidated Field Guide to Context, Skills, Agents, and Memory