Examples (5)
Print shared object mappings for a Java process (output like pmap)
jmap java_pidPrint heap summary information
jmap -heap filename.jar java_pidPrint histogram of heap usage by type
jmap -histo java_pidDump contents of the heap into a binary file for analysis with jhat
jmap -dump:format=b,file=path/to/file java_pidDump live objects of the heap into a binary file for analysis with jhat
jmap -dump:live,format=b,file=path/to/file java_pidmade by @shridhargupta | data from tldr-pages