OS Manuals

/usr/lib/jvm/java-12-openjdk/bin/jmap

From openjdk-12 12.0.2.10-r10 (os), captured 2026-11-05 by running jmap --help (exit 0). permalink

Usage:
    jmap -clstats <pid>
        to connect to running process and print class loader statistics
    jmap -finalizerinfo <pid>
        to connect to running process and print information on objects awaiting finalization
    jmap -histo[:live] <pid>
        to connect to running process and print histogram of java object heap
        if the "live" suboption is specified, only count live objects
    jmap -dump:<dump-options> <pid>
        to connect to running process and dump java heap
    jmap -? -h --help
        to print this help message

    dump-options:
      live         dump only live objects; if not specified,
                   all objects in the heap are dumped.
      format=b     binary format
      file=<file>  dump heap to <file>

    Example: jmap -dump:live,format=b,file=heap.bin <pid>

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.