1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-02 01:18:00 +01:00
tldr/pages/common/jmap.md

20 lines
399 B
Markdown
Raw Normal View History

# jmap
> Java Memory Map Tool.
- Print shared object mappings for a java process (output like pmap):
`jmap {{java_pid}}`
- Print heap summary information:
2016-02-16 21:36:36 +01:00
`jmap -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}}`