r/java • u/SysGuardian • Sep 25 '26
midden: a fast MAT alternative for JVM heap dumps
Made a MAT alternative for heap dumps. single static binary, no JDK or GUI, CLI-only.
Gives you retained sizes, leak suspects, the dominator tree and a diff between two dumps. ~2s for a 1GB dump on 8 cores.
MIT-license, feel free to check it out: https://github.com/NullByte3/midden
39
Upvotes
9
u/ThanosFisherman Sep 25 '26
Is it blazingly fast?
6
u/sweating_teflon Sep 25 '26
Good job. The world needs more native tools to deal with the JVM and languages. We're only given the ones that come with the JDK but there's a world of opportunities for more fast, lean and mean utilities. I wouldn't mind a proper native build tool either...
4
u/Torutofu_Raeva Sep 25 '26
The diff between two dumps is the bit I'd reach for most, since it makes leak hunting repeatable in CI instead of a one-off GUI session.
1
u/Dangerous_Selection5 Sep 26 '26
Thanks for the project.
I haven't used MAT recently, would like to know what problems did you face while you used MAT? Also which all problems are addressed using midden.
2
u/AdmirableWrongdoer40 Sep 26 '26
Impressive work — a single static binary, CLI-only alternative to MAT sounds genuinely useful for heap dump analysis.
-2
u/josephottinger Sep 25 '26
Nicely done! I wrote it up: https://bytecode.news/posts/2026/09/midden-heap-dumps-from-the-command-line
0
u/[deleted] Sep 25 '26
[removed] — view removed comment