jhat
java Heap Analysis Tool
TLDR
Analyze heap dump
$ jhat [dump.hprof]
Use custom port$ jhat -port [8080] [dump.hprof]
Analyze with increased memory$ jhat -J-Xmx8G [dump.hprof]
Compare with baseline$ jhat -baseline [old.hprof] [new.hprof]
Analyze specific dump in multi-dump file$ jhat [file.hprof#2]
SYNOPSIS
jhat [options] heap-dump-file
DESCRIPTION
jhat is the Java Heap Analysis Tool. It parses heap dump files and launches a web server for browsing heap contents. Supports pre-designed queries and OQL (Object Query Language) for custom analysis. Access the web interface at http://localhost:7000 by default.
PARAMETERS
-port port
HTTP server port (default 7000).-baseline file
Baseline dump for comparison.-stack boolean
Track allocation call stacks.-refs boolean
Track object references.-exclude file
Exclude data members from queries.-Jflag
Pass flag to JVM (e.g., -J-Xmx8G).
CAVEATS
Deprecated since JDK 9. Use VisualVM, Eclipse MAT, or other heap analyzers instead. Still works with JDK 8.
