JMAP(1)
π
JMAP(1) β the jmap page, but make it make sense
okay so real talk: this is the man page for jmap, and it lives in the JDK Commands section of the manual. It's a tool that prints details about a process you specify, and bestie, it's experimental and unsupported β so treat it like a cute vintage find, not a load-bearing wall. π«Ά
β¨ NAME β¨
jmap β print details of a specified process. that's it, that's the whole vibe check. π
πΈ SYNOPSIS πΈ
β οΈ heads up before anything else: This command is experimental and unsupported. no cap.
jmap [options] pid
optionsβ this is where you put thejmapcommand-line options. peek at Options for thejmapCommand below for the full menu, menu-obsessed icon that you are. πpidβ the process ID you want the info printed for. important: the process must be a Java process. to get a list of Java processes running on a machine, use either thepscommand or β and this is the fun conditional β thejpscommand, if the JVM processes are not running in a separate docker instance. iykyk. π³
π¦ DESCRIPTION π¦
The jmap command prints details of a specified running process. literally that's the job. π
Note:
This command is unsupported and might not be available in future releases of the JDK. π So don't build your whole personality around it, okay?
On Windows systems where the dbgeng.dll file isn't present, the Debugging Tools for Windows must be installed to make these tools work. and listen β the PATH environment variable should contain the location of the jvm.dll file that's used by the target process, or the location from which the core dump file was produced. both of those? path stuff. treat it right. β¨
π OPTIONS FOR THE JMAP COMMAND π
-clstats pidβ connects to a running process and prints class loader statistics of the Java heap. class loader lore, honestly iconic. π-finalizerinfo pidβ connects to a running process and prints information on objects awaiting finalization. the ones in limbo. the ones not yet at peace. π-histo[:live] pidβ connects to a running process and prints a histogram of the Java object heap. if you specify thelivesuboption, it then counts only live objects. so-histo= everyone invited,-histo:live= strict guest list. π-dump:dump_options pidβ connects to a running process and dumps the Java heap. thedump_optionsinclude:liveβ when specified, dumps only the live objects; if not specified, then dumps all objects in the heap. main character objects vs. the whole crowd. πformat=bβ dumps the Java heap in hprof binary format.file=filenameβ dumps the heap to filename.
Example, so you can copy-paste and slay:
jmap -dump:live,format=b,file=heap.bin pid
and that's the whole page, bestie, no crumbs left behind π§π
β cute little sign-off β β this gorgeousness is from JDK 25.0.5.0.3, dated 2026. screenshot it, frame it, put it on your wall. ππ
π¦ where this page comes from
- arch rolling: jdk25-openjdk 25.0.5.0.3.u1-1 Β· LicenseRef-Java
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms