JMAP(1)
πΈ jmap β the vibe-check edition πΈ
okay so bestie, welcome to the JMAP(1) page from the JDK Commands lineup. this is all about jmap, and yes, the manual name is literally JMAP(1). let's get into it π
β¨ NAME β¨
jmap β print details of a specified process.
π¦ SYNOPSIS π¦
Note: This command is experimental and unsupported.
jmap [options] pid
optionsβ this represents thejmapcommand-line options. See Options for the jmap Command.pidβ the process ID for which the information specified by theoptionsis to be printed. 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.
π DESCRIPTION π
The jmap command prints details of a specified running process.
Note: This command is unsupported and might not be available in future releases of the JDK. On Windows Systems where thedbgeng.dllfile isn't present, the Debugging Tools for Windows must be installed to make these tools work. ThePATHenvironment variable should contain the location of thejvm.dllfile that's used by the target process or the location from which the core dump file was produced.
π OPTIONS FOR THE JMAP COMMAND π
-clstats pidβ connects to a running process and prints class loader statistics of Java heap.-finalizerinfo pidβ connects to a running process and prints information on objects awaiting finalization.-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.-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.format=bβ Dumps the Java heap in hprof binary format.file=filenameβ Dumps the heap tofilename.
Example:
jmap -dump:live,format=b,file=heap.bin pid
xoxo, signing off from the JDK 23 source/version, dated 2024, on the JMAP(1) page. mwah πππ¦
π¦ where this page comes from
- opensuse-leap 16.0: java-23-openjdk-devel 23.0.2.0-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 SUSE-Public-Domain AND W3C
- opensuse-leap 16.0: java-23-openjdk-devel 23.0.2.0-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 SUSE-Public-Domain AND W3C
- opensuse-leap 16.0: java-23-openjdk-devel 23.0.2.0-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 SUSE-Public-Domain AND W3C
- opensuse-leap 16.0: java-23-openjdk-devel 23.0.2.0-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 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