A Hotspot JVM command-line utility that prints memory-related statistics for a running JVM or core file.
jmap is a command-line utility that serves as a tool for troubleshooting various memory-related issues in a Java Virtual Machine (JVM). jmap is distributed as a part of Oracle's Hotspot JVM, and so it can be used only for the Hotspot JVM.
jmap usually prints memory-related statistics for a running JVM or core file. Typical uses of jmap are :
jmap -histo <jvm-pid>- which prints class histogram of the instances present in the heapjmap -heap <jvm-pid>- which prints a heap summary
A full list of command line options is available here.