JMAP(1)

πŸ“¦ version 27.0.1.0.3.u1, in arch rolling

πŸ’– NAME πŸ’–

okay so bestie, meet jmap β€” the JDK Commands manual page bestie also known as JMAP(1) πŸ’…βœ¨. Its whole NAME-line job? print details of a specified process 🫢. That's it, that's the errand.


🌸 SYNOPSIS 🌸

🚨 Note: This command is experimental and unsupported.

Here's the little summoning spell:

jmap [options] pid
  • options β€” This is the whole little bag of jmap command-line options. See Options for the jmap Command for the full tea β˜•.
  • pid β€” The process ID whose info, as chosen by options, is gonna get printed. The process must be a Java process. Need a list of Java processes running on the machine? Use either the ps command or β€” if the JVM processes are not running in a separate docker instance β€” the jps command. iykyk 🐚

πŸ¦‹ DESCRIPTION πŸ¦‹

The jmap command prints details of a specified running process. It's giving β€œprocess info main character energy,” honestly πŸ‘‘.

🚨 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 β€” Hooks up to a running process and prints class loader statistics of Java heap. πŸ“š
  • -finalizerinfo pid β€” Hooks up to a running process and prints information on objects awaiting finalization. πŸ•°οΈ
  • -histo[:live] pid β€” Hooks up 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 β€” Hooks up 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 πŸ’Ύ

made with πŸ’– by your JDK 27.0.1.0.3 bestie, dated 2026, signing off as JMAP(1) β€” periodt βœ¨πŸŽ€

πŸ“¦ where this page comes from