JMAP(1)

πŸ“¦ version 21.0.12.1.1, in centos-stream 10

πŸ’… 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 the jmap command-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 the ps command or, if the JVM processes are not running in a separate docker instance, the jps command. πŸ’…

πŸ¦‹ 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 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. 😭

πŸŽ€ 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 the live suboption is specified, it then counts only live objects. ✨
  • -dump:dump_options pid β€” connects to a running process and dumps the Java heap. The dump_options include:
    • 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 to filename. πŸŽ€

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-slowdebug 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
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms