The Java Heap Analysis Tool (JHAT) is used to parse Java heap dump files. The syntax for this heap dump file parsing tool is as follows:
jhat
[-stack <bool>]
[-refs <bool>]
[-port <port>]
[-baseline <file>]
[-debug <int>]
[-version]
[-h|-help]
<file>
Here is a quick look at the options associated with the JHAT command:
| Option | Description | Default |
| -J<flag> | This passes <flag> to the runtime system | N/A |
| -stack<bool> | This toggles tracking of the object allocation call stack | true |
| -refs<bool> | This toggles tracking of references to objects | true |
| -port<port> | This indicates the port for the JHAT HTTP server | 7000 |
| -exclude<exclude-filename> | This excludes the indicated file from reachable objects | N/A |
| -baseline<filename> | This specifies the baseline heap dump... |