4176N/A." Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
0N/A." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A."
0N/A." This code is free software; you can redistribute it and/or modify it
0N/A." under the terms of the GNU General Public License version 2 only, as
0N/A." published by the Free Software Foundation.
0N/A."
0N/A." This code is distributed in the hope that it will be useful, but WITHOUT
0N/A." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A." version 2 for more details (a copy is included in the LICENSE file that
0N/A." accompanied this code).
0N/A."
0N/A." You should have received a copy of the GNU General Public License version
0N/A." 2 along with this work; if not, write to the Free Software Foundation,
0N/A." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A."
2362N/A." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A." or visit www.oracle.com if you need additional information or have any
2362N/A." questions.
0N/A."
4880N/A.TH jmap 1 "16 Mar 2012"
0N/A
0N/A.LP
1178N/A.SH "Name"
0N/Ajmap \- Memory Map
0N/A.LP
0N/A.SH "SYNOPSIS"
0N/A.LP
0N/A.nf
0N/A\f3
0N/A.fl
0N/A\fP\f3jmap\fP [ option ] pid
0N/A.fl
0N/A\f3jmap\fP [ option ] executable core
0N/A.fl
0N/A\f3jmap\fP [ option ] [server\-id@]remote\-hostname\-or\-IP
0N/A.fl
0N/A.fi
0N/A
0N/A.LP
0N/A.SH "PARAMETERS"
0N/A.LP
1178N/A.RS 3
0N/A.TP 3
0N/Aoption
0N/AOptions are mutually exclusive. Option, if used, should follow immediately after the command name.
0N/A.TP 3
0N/Apid
1178N/Aprocess 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, jps(1) may be used.
1178N/A.br
0N/A.TP 3
0N/Aexecutable
0N/AJava executable from which the core dump was produced.
1178N/A.br
0N/A.TP 3
0N/Acore
0N/Acore file for which the memory map is to be printed.
1178N/A.br
0N/A.TP 3
0N/Aremote\-hostname\-or\-IP
1178N/Aremote debug server's (see jsadebugd(1)) hostname or IP address.
1178N/A.br
0N/A.TP 3
0N/Aserver\-id
0N/Aoptional unique id, if multiple debug servers are running on the same remote host.
0N/A.br
1178N/A.RE
0N/A
0N/A.LP
0N/A.SH "DESCRIPTION"
0N/A.LP
0N/A.LP
0N/A\f3jmap\fP prints shared object memory maps or heap memory details of a given process or core file or a remote debug server. If the given process is running on a 64\-bit VM, you may need to specify the \f2\-J\-d64\fP option, e.g.:
0N/A.LP
0N/A.nf
0N/A\f3
0N/A.fl
0N/Ajmap \-J\-d64 \-heap pid
0N/A.fl
0N/A\fP
0N/A.fi
0N/A
0N/A.LP
4176N/A.LP
4176N/A\f3NOTE: This utility is unsupported and may or may not be available in future versions of the JDK. In Windows Systems where dbgeng.dll is not present, 'Debugging Tools For Windows' needs to be installed to have these tools working. Also, \fP\f4PATH\fP\f3 environment variable should contain the location of \fP\f4jvm.dll\fP\f3 used by the target process or the location from which the Crash Dump file was produced.\fP
4176N/A.LP
1178N/A.LP
1178N/A\f3For example, \fP\f4set PATH=<jdk>\\jre\\bin\\client;%PATH%\fP
1178N/A.LP
0N/A.br
0N/A
0N/A.LP
0N/A.SH "OPTIONS"
0N/A.LP
1178N/A.RS 3
0N/A.TP 3
1178N/A<no option>
4176N/AWhen no option is used jmap prints shared object mappings. For each shared object loaded in the target VM, start address, the size of the mapping, and the full path of the shared object file are printed. This is similar to the Solaris \f3pmap\fP utility.
1178N/A.br
0N/A.TP 3
0N/A\-dump:[live,]format=b,file=<filename>
1178N/ADumps the Java heap in hprof binary format to filename. The \f2live\fP suboption is optional. If specified, only the live objects in the heap are dumped. To browse the heap dump, you can use jhat(1) (Java Heap Analysis Tool) to read the generated file.
1178N/A.br
0N/A.TP 3
0N/A\-finalizerinfo
0N/APrints information on objects awaiting finalization.
1178N/A.br
0N/A.TP 3
0N/A\-heap
0N/APrints a heap summary. GC algorithm used, heap configuration and generation wise heap usage are printed.
1178N/A.br
0N/A.TP 3
0N/A\-histo[:live]
0N/APrints a histogram of the heap. For each Java class, number of objects, memory size in bytes, and fully qualified class names are printed. VM internal class names are printed with '*' prefix. If the \f2live\fP suboption is specified, only live objects are counted.
1178N/A.br
0N/A.TP 3
0N/A\-permstat
0N/APrints class loader wise statistics of permanent generation of Java heap. For each class loader, its name, liveness, address, parent class loader, and the number and size of classes it has loaded are printed. In addition, the number and size of interned Strings are printed.
1178N/A.br
0N/A.TP 3
0N/A\-F
0N/AForce. Use with jmap \-dump or jmap \-histo option if the pid does not respond. The \f2live\fP suboption is not supported in this mode.
1178N/A.br
0N/A.TP 3
0N/A\-h
0N/APrints a help message.
0N/A.br
1178N/A.br
0N/A.TP 3
0N/A\-help
0N/APrints a help message.
0N/A.br
1178N/A.br
0N/A.TP 3
0N/A\-J<flag>
0N/APasses <flag> to the Java virtual machine on which jmap is run.
1178N/A.br
1178N/A.RE
0N/A
0N/A.LP
0N/A.SH "SEE ALSO"
0N/A.LP
0N/A.RS 3
0N/A.TP 2
1178N/Ao
1178N/Apmap(1)
0N/A.TP 2
1178N/Ao
1178N/Ajhat(1)
0N/A.TP 2
1178N/Ao
1178N/Ajps(1)
0N/A.TP 2
1178N/Ao
1178N/Ajsadebugd(1)
0N/A.RE
0N/A
0N/A.LP
0N/A