JMAP(1)
π NAME π
okay bestie, welcome to the JMAP(1) page from the JDK Commands set β the command jmap prints details of a specified process, and that's the whole assignment β¨. It's giving diagnostic main character energy, fr fr.
β¨ SYNOPSIS β¨
Note: This command is experimental and unsupported. Don't get too attached, okay? π
jmap [options] pid
optionsβ this represents thejmapcommand-line options. Peep the Options for the jmap Command section below for the full rundown π.pidβ the process ID for which the information specified by theoptionsis to be printed. Lowkey important: the process must be a Java process. To get a list of Java processes running on a machine, use either thepscommand or, if the JVM processes are not running in a separate docker instance, thejpscommand. iykyk π«Ά
π¦ DESCRIPTION π¦
The jmap command prints details of a specified running process. That's it, that's the vibe π
.
Note: This command is unsupported and might not be available in future releases of the JDK. No cap, plan accordingly. π
On Windows Systems where the dbgeng.dll file isn't present, the Debugging Tools for Windows must be installed to make these tools work. 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. Literally make sure your PATH is behaving, bestie π.
π OPTIONS FOR THE JMAP COMMAND π
-clstatspid β Connects to a running process and prints class loader statistics of Java heap. Class loader gossip, but make it stats π.-finalizerinfopid β Connects to a running process and prints information on objects awaiting finalization. The "what's still waiting around" vibe check π.-histo[:live]pid β Connects to a running process and prints a histogram of the Java object heap. If thelivesuboption is specified, it then counts only live objects. Live-objects-only mode when you need that filter, slay β¨.-dump:dump_optionspid β 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. So yes, not passinglivemeans all objects, periodt π.format=bβ Dumps the Java heap in hprof binary format.file=filenameβ Dumps the heap tofilename.
Example, bestie β copy it exactly:
jmap -dump:live,format=b,file=heap.bin pid
mwah π this page is from JDK 17, dated 2021, and its manual tag is JMAP(1). bye bestie, go check those processes π«Άπ¦
π¦ where this page comes from
- opensuse-leap 16.0: java-17-openjdk-devel 17.0.20.1-160000.1.1 Β· Apache-1.1 AND Apache-2.0 AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-only WITH Classpath-exception-2.0 AND LGPL-2.0-only AND MPL-1.0 AND MPL-1.1 AND LicenseRef-SUSE-Public-Domain AND W3C
- opensuse-leap 16.0: java-17-openjdk-devel 17.0.20.1-160000.1.1 Β· Apache-1.1 AND Apache-2.0 AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-only WITH Classpath-exception-2.0 AND LGPL-2.0-only AND MPL-1.0 AND MPL-1.1 AND LicenseRef-SUSE-Public-Domain AND W3C
- opensuse-leap 16.0: java-17-openjdk-devel 17.0.20.1-160000.1.1 Β· Apache-1.1 AND Apache-2.0 AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-only WITH Classpath-exception-2.0 AND LGPL-2.0-only AND MPL-1.0 AND MPL-1.1 AND LicenseRef-SUSE-Public-Domain AND W3C
- opensuse-leap 16.0: java-17-openjdk-devel 17.0.20.1-160000.1.1 Β· Apache-1.1 AND Apache-2.0 AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-only WITH Classpath-exception-2.0 AND LGPL-2.0-only AND MPL-1.0 AND MPL-1.1 AND LicenseRef-SUSE-Public-Domain AND W3C
- Copyright (c) 2004, 2018, Oracle and/or its affiliates. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms