OS Manuals

/usr/lib/jvm/java-1.8-amazon-corretto/bin/jmap

Amazon Corretto 8 is a no-cost, multi-platform, production-ready distribution of OpenJDK 8

From corretto-8 8.512.09.1-r1 (enterprise-packages), captured 2026-11-08 by running jmap --help (exit 1). permalink

Usage:
    jmap [option] <pid>
        (to connect to running process)
    jmap [option] <executable <core>
        (to connect to a core file)
    jmap [option] [server_id@]<remote server IP or hostname>
        (to connect to remote debug server)

where <option> is one of:
    <none>               to print same info as Solaris pmap
    -heap                to print java heap summary
    -histo[:live]        to print histogram of java object heap; if the "live"
                         suboption is specified, only count live objects
    -clstats             to print class loader statistics
    -finalizerinfo       to print information on objects awaiting finalization
    -dump:<dump-options> to dump java heap in hprof binary format
                         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>
    -F                   force. Use with -dump:<dump-options> <pid> or -histo
                         to force a heap dump or histogram when <pid> does not
                         respond. The "live" suboption is not supported
                         in this mode.
    -h | -help           to print this help message
    -J<flag>             to pass <flag> directly to the runtime system
Options (8)
OptionDescriptionSource
-heapPrints a heap summary of the garbage collection used, the head configuration, and generation-wise heap usage.help + man
-histo :liveto print histogram of java object heap;help
-clstatsPrints class loader wise statistics of Java heap.help + man
-finalizerinfoPrints information about objects that are awaiting finalization.help + man
-Fforce.help + man
-h, -helpto print this help messagehelp + man + man
-J flagto pass <flag> directly to the runtime systemhelp
-JflagPasses flag to the Java Virtual Machine where the jmap command is running. (in the manual page but not in --help)man

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