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