jmap.1 revision 4935
4632N/A." Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
4632N/A." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4632N/A."
4632N/A." This code is free software; you can redistribute it and/or modify it
4632N/A." under the terms of the GNU General Public License version 2 only, as
4632N/A." published by the Free Software Foundation.
4632N/A."
4632N/A." This code is distributed in the hope that it will be useful, but WITHOUT
4632N/A." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4632N/A." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4632N/A." version 2 for more details (a copy is included in the LICENSE file that
4632N/A." accompanied this code).
4632N/A."
4632N/A." You should have received a copy of the GNU General Public License version
4632N/A." 2 along with this work; if not, write to the Free Software Foundation,
4632N/A." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4632N/A."
4632N/A." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4632N/A." or visit www.oracle.com if you need additional information or have any
4632N/A." questions.
4632N/A."
4632N/A.TH jmap 1 "10 May 2011"
4632N/A
4632N/A.LP
4632N/A.SH "Name"
4632N/Ajmap \- Memory Map
4632N/A.LP
4632N/A.SH "SYNOPSIS"
4632N/A.LP
4632N/A.nf
4632N/A\f3
4632N/A.fl
4632N/A\fP\f3jmap\fP [ option ] pid
4632N/A.fl
4632N/A\f3jmap\fP [ option ] executable core
4632N/A.fl
4632N/A\f3jmap\fP [ option ] [server\-id@]remote\-hostname\-or\-IP
4632N/A.fl
4632N/A.fi
4632N/A
4632N/A.LP
4632N/A.SH "PARAMETERS"
4632N/A.LP
4632N/A.RS 3
4632N/A.TP 3
4632N/Aoption
4632N/AOptions are mutually exclusive. Option, if used, should follow immediately after the command name.
4632N/A.TP 3
4632N/Apid
4632N/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.
4632N/A.br
4632N/A.TP 3
4632N/Aexecutable
4632N/AJava executable from which the core dump was produced.
4632N/A.br
4632N/A.TP 3
4632N/Acore
4632N/Acore file for which the memory map is to be printed.
4632N/A.br
4632N/A.TP 3
4632N/Aremote\-hostname\-or\-IP
4632N/Aremote debug server's (see jsadebugd(1)) hostname or IP address.
4632N/A.br
4632N/A.TP 3
4632N/Aserver\-id
4632N/Aoptional unique id, if multiple debug servers are running on the same remote host.
4632N/A.br
4632N/A.RE
4632N/A
4632N/A.LP
4632N/A.SH "DESCRIPTION"
4632N/A.LP
4632N/A.LP
4632N/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.:
4632N/A.LP
4632N/A.nf
4632N/A\f3
4632N/A.fl
4632N/Ajmap \-J\-d64 \-heap pid
4632N/A.fl
4632N/A\fP
4632N/A.fi
4632N/A
4632N/A.LP
4632N/A.LP
4632N/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
4632N/A.LP
4632N/A.LP
4632N/A\f3For example, \fP\f4set PATH=<jdk>\\jre\\bin\\client;%PATH%\fP
4632N/A.LP
4632N/A.br
4632N/A
4632N/A.LP
4632N/A.SH "OPTIONS"
4632N/A.LP
4632N/A.RS 3
4632N/A.TP 3
4632N/A<no option>
4632N/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.
4632N/A.br
4632N/A.TP 3
4632N/A\-dump:[live,]format=b,file=<filename>
4632N/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.
4632N/A.br
4632N/A.TP 3
4632N/A\-finalizerinfo
4632N/APrints information on objects awaiting finalization.
4632N/A.br
4632N/A.TP 3
4632N/A\-heap
4632N/APrints a heap summary. GC algorithm used, heap configuration and generation wise heap usage are printed.
4632N/A.br
4632N/A.TP 3
4632N/A\-histo[:live]
4632N/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.
4632N/A.br
4632N/A.TP 3
4632N/A\-permstat
4632N/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.
4632N/A.br
4632N/A.TP 3
4632N/A\-F
4632N/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.
4632N/A.br
4632N/A.TP 3
4632N/A\-h
4632N/APrints a help message.
4632N/A.br
4632N/A.br
4632N/A.TP 3
4632N/A\-help
4632N/APrints a help message.
4632N/A.br
4632N/A.br
4632N/A.TP 3
4632N/A\-J<flag>
4632N/APasses <flag> to the Java virtual machine on which jmap is run.
4632N/A.br
4632N/A.RE
4632N/A
4632N/A.LP
4632N/A.SH "SEE ALSO"
4632N/A.LP
4632N/A.RS 3
4632N/A.TP 2
4632N/Ao
4632N/Apmap(1)
4632N/A.TP 2
4632N/Ao
4632N/Ajhat(1)
4632N/A.TP 2
4632N/Ao
4632N/Ajps(1)
4632N/A.TP 2
4632N/Ao
4632N/Ajsadebugd(1)
4632N/A.RE
4632N/A
4632N/A.LP
4632N/A