tldr/pages.zh/common/jhat.md

17 lines
499 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# jhat
> Java 堆分析工具。
> 更多信息:<https://docs.oracle.com/javase/8/docs/technotes/tools/unix/jhat.html>.
- 分析堆转储文件(来自 jmap通过 HTTP 端口 7000 进行查看:
`jhat {{路径/堆转储文件}}`
- 分析堆转储文件,为 HTTP 服务指定备用端口:
`jhat -p {{端口}} {{路径/堆转储文件}}`
- 通过 jhat 分析转储文件,指定使用 8GB RAM建议使用 2-4 倍的转储大小):
`jhat -J-mx8G {{路径/堆转储文件}}`