2016-02-16 19:27:52 +00:00
|
|
|
# jhat
|
|
|
|
|
2022-10-11 03:59:50 +01:00
|
|
|
> Java heap analysis tool.
|
2021-07-26 17:52:14 +01:00
|
|
|
> More information: <https://docs.oracle.com/javase/8/docs/technotes/tools/unix/jhat.html>.
|
2016-02-16 19:27:52 +00:00
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Analyze a heap dump (from `jmap`), view via HTTP on port 7000:
|
2016-02-16 19:27:52 +00:00
|
|
|
|
|
|
|
`jhat {{dump_file.bin}}`
|
|
|
|
|
|
|
|
- Analyze a heap dump, specifying an alternate port for the http server:
|
|
|
|
|
|
|
|
`jhat -p {{port}} {{dump_file.bin}}`
|
2016-02-17 00:32:26 +00:00
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Analyze a dump letting `jhat` use up to 8 GB RAM (2-4x dump size recommended):
|
2016-02-17 00:32:26 +00:00
|
|
|
|
|
|
|
`jhat -J-mx8G {{dump_file.bin}}`
|