jmap
Java memory map tool. tldr-pages
On several platforms
Several platforms
Print shared object mappings for a Java process (output like pmap)
jmap java_pidIdentifyPrint heap summary information
jmap -heap filename.jar java_pidIdentifyPrint histogram of heap usage by type
jmap -histo java_pidIdentifyDump contents of the heap into a binary file for analysis with jhat
jmap -dump:format=b,file=path/to/file java_pidIdentifyDump live objects of the heap into a binary file for analysis with jhat
jmap -dump:live,format=b,file=path/to/file java_pidIdentify