jmap(1)
okay so bestie, welcome to jmap from the Troubleshooting Tools manual, section 1 β the experimental, unsupported one. Yes, the manpage itself says itβs experimental and unsupported, so vibe check before you ship it. π
π NAME π
jmap β Prints shared object memory maps or heap memory details for a process, core file, or remote debug server. This command is experimental and unsupported.
β¨ SYNOPSIS β¨
jmap [ options ] pid
jmap [ options ] executable core
jmap [ options ] [ pid ] server-id@ ] remote-hostname-or-IP
optionsβ The command-line options. See Options.pidβ The process ID for which the memory map is to be printed. The process must be a Java process. To get a list of Java processes running on a machine, use thejps(1)command.executableβ The Java executable from which the core dump was produced.coreβ The core file for which the memory map is to be printed.remote-hostname-or-IPβ The remote debug server hostname or IP address. Seejsadebugd(1).server-idβ An optional unique ID to use when multiple debug servers are running on the same remote host.
π DESCRIPTION π
The jmap command prints shared object memory maps or heap memory details of a specified process, core file, or remote debug server. If the specified process is running on a 64-bit Java Virtual Machine (JVM), then you might need to specify the -J-d64 option, for example: jmap-J-d64 -heap pid.
Note: This utility is unsupported and might not be available in future releases of the JDK. On Windows Systems where thedbgeng.dllfile is not present, Debugging Tools For Windows must be installed to make these tools work. ThePATHenvironment variable should contain the location of thejvm.dllfile that is used by the target process or the location from which the crash dump file was produced, for example:set PATH=%JDK_HOME%\jre\bin\client;%PATH%.
πΈ OPTIONS πΈ
<no option>β When no option is used, thejmapcommand prints shared object mappings. For each shared object loaded in the target JVM, the start address, size of the mapping, and the full path of the shared object file are printed. This behavior is similar to the Oracle Solarispmaputility.-dump:[live,] format=b, file=filenameβ Dumps the Java heap in hprof binary format tofilename. Thelivesuboption is optional, but when specified, only the active objects in the heap are dumped. To browse the heap dump, you can use thejhat(1)command to read the generated file.-finalizerinfoβ Prints information about objects that are awaiting finalization.-heapβ Prints a heap summary of the garbage collection used, the head configuration, and generation-wise heap usage. In addition, the number and size of interned Strings are printed.-histo[:live]β Prints a histogram of the heap. For each Java class, the number of objects, memory size in bytes, and the fully qualified class names are printed. The JVM internal class names are printed with an asterisk(*)prefix. If thelivesuboption is specified, then only active objects are counted.-clstatsβ Prints class loader wise statistics of Java heap. For each class loader, its name, how active it is, address, parent class loader, and the number and size of classes it has loaded are printed.-Fβ Force. Use this option with thejmap -dumporjmap -histooption when thepiddoes not respond. Thelivesuboption is not supported in this mode.-hβ Prints a help message.-helpβ Prints a help message.-Jflagβ Passesflagto the Java Virtual Machine where thejmapcommand is running.
π¦ SEE ALSO π¦
Thatβs the whole page, bestie β this one is from JDK 8, dated 21 November 2013. Go off, and remember: unsupported means unsupported, no cap. πβ¨π
π¦ where this page comes from
- centos-stream 9: java-11-openjdk-devel-fastdebug 1:11.0.20.1.1-2.el9 Β· 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, 2013, 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