JMAP(1)
π jmap(1) β print details of a specified process
okay bestie, welcome to jmap from the JDK Commands manual β page JMAP(1), main character of this terminal moment. She prints details of a specified process. Periodt. π
πΈ NAME
jmap β print details of a specified process. That's the whole NAME section, no cap. β¨
β¨ SYNOPSIS
Note: This command is experimental and unsupported.
jmap [options] pid
optionsβ this represents thejmapcommand-line options. See Options for the jmap Command (the section below, iykyk). π«Άpidβ the process ID for which the information specified by the options is 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. It's giving "I have the tea on your process" and honestly? Obsessed. Lowkey iconic, highkey useful, fr fr. π
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
k bye bestie π β source/version is JDK 21, date is 2023, and that's the cute JMAP(1) sign-off. Mwah. π«Ά
π¦ where this page comes from
- centos-stream 10: java-21-openjdk-devel-fastdebug 1:21.0.12.1.1-2.1.el10 Β· ASL 1.1 and ASL 2.0 and BSD and BSD with advertising and GPL+ and GPLv2 and GPLv2 with exceptions and IJG and LGPLv2+ and MIT and MPLv2.0 and Public Domain and W3C and zlib and ISC and FTL and RSA
- 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