CmdID

CmdID / Commands

jmap

Java memory map tool. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Print shared object mappings for a Java process (output like pmap)

jmap java_pidIdentify

Print heap summary information

jmap -heap filename.jar java_pidIdentify

Print histogram of heap usage by type

jmap -histo java_pidIdentify

Dump contents of the heap into a binary file for analysis with jhat

jmap -dump:format=b,file=path/to/file java_pidIdentify

Dump live objects of the heap into a binary file for analysis with jhat

jmap -dump:live,format=b,file=path/to/file java_pidIdentify