Java debug tools. Jstack, jmap and jhat.

This commit is contained in:
Peter Tripp
2016-02-16 11:27:52 -08:00
parent 8991253b8d
commit 67e2c723af
3 changed files with 45 additions and 0 deletions

19
pages/common/jmap.md Normal file
View File

@@ -0,0 +1,19 @@
# jmap
> Java Memory Map Tool.
- Print shared object mappings for a java process (output like pmap):
`jmap {{java_pid}}`
- Print heap summary information:
`java -heap {{filename.jar}} {{java_pid}}`
- Print histogram of heap usage by type:
`jmap -histo {{java_pid}}`
- Dump contents of the heap into a binary file for analysis with jhat:
`jmap -dump:format=b,file={{filename}} {{java_pid}}`