2
|
1 |
.'" t
|
|
2 |
." Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
|
|
3 |
." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
4 |
."
|
|
5 |
." This code is free software; you can redistribute it and/or modify it
|
|
6 |
." under the terms of the GNU General Public License version 2 only, as
|
|
7 |
." published by the Free Software Foundation.
|
|
8 |
."
|
|
9 |
." This code is distributed in the hope that it will be useful, but WITHOUT
|
|
10 |
." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
11 |
." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
12 |
." version 2 for more details (a copy is included in the LICENSE file that
|
|
13 |
." accompanied this code).
|
|
14 |
."
|
|
15 |
." You should have received a copy of the GNU General Public License version
|
|
16 |
." 2 along with this work; if not, write to the Free Software Foundation,
|
|
17 |
." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
18 |
."
|
|
19 |
." Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
|
20 |
." CA 95054 USA or visit www.sun.com if you need additional information or
|
|
21 |
." have any questions.
|
|
22 |
." `
|
|
23 |
.TH jmap 1 "05 Aug 2006"
|
|
24 |
." Generated by html2roff
|
|
25 |
|
|
26 |
.LP
|
|
27 |
.SH NAME
|
|
28 |
jmap \- Memory Map
|
|
29 |
.LP
|
|
30 |
.SH "SYNOPSIS"
|
|
31 |
.LP
|
|
32 |
|
|
33 |
.LP
|
|
34 |
.nf
|
|
35 |
\f3
|
|
36 |
.fl
|
|
37 |
\fP\f3jmap\fP [ option ] pid
|
|
38 |
.fl
|
|
39 |
\f3jmap\fP [ option ] executable core
|
|
40 |
.fl
|
|
41 |
\f3jmap\fP [ option ] [server\-id@]remote\-hostname\-or\-IP
|
|
42 |
.fl
|
|
43 |
.fi
|
|
44 |
|
|
45 |
.LP
|
|
46 |
.SH "PARAMETERS"
|
|
47 |
.LP
|
|
48 |
|
|
49 |
.LP
|
|
50 |
.TP 3
|
|
51 |
option
|
|
52 |
Options are mutually exclusive. Option, if used, should follow immediately after the command name.
|
|
53 |
.TP 3
|
|
54 |
pid
|
|
55 |
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, jps may be used.
|
|
56 |
.TP 3
|
|
57 |
executable
|
|
58 |
Java executable from which the core dump was produced.
|
|
59 |
.TP 3
|
|
60 |
core
|
|
61 |
core file for which the memory map is to be printed.
|
|
62 |
.TP 3
|
|
63 |
remote\-hostname\-or\-IP
|
|
64 |
remote debug server's (see jsadebugd) hostname or IP address.
|
|
65 |
.TP 3
|
|
66 |
server\-id
|
|
67 |
optional unique id, if multiple debug servers are running on the same remote host.
|
|
68 |
.br
|
|
69 |
|
|
70 |
.LP
|
|
71 |
.SH "DESCRIPTION"
|
|
72 |
.LP
|
|
73 |
|
|
74 |
.LP
|
|
75 |
.LP
|
|
76 |
\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.:
|
|
77 |
.LP
|
|
78 |
.RS 3
|
|
79 |
|
|
80 |
.LP
|
|
81 |
.nf
|
|
82 |
\f3
|
|
83 |
.fl
|
|
84 |
jmap \-J\-d64 \-heap pid
|
|
85 |
.fl
|
|
86 |
\fP
|
|
87 |
.fi
|
|
88 |
.RE
|
|
89 |
|
|
90 |
.LP
|
|
91 |
\f3NOTE \- This utility is unsupported and may or may not be available in future versions of the JDK.\fP
|
|
92 |
.br
|
|
93 |
|
|
94 |
.LP
|
|
95 |
The only forms of jmap available on the Windows platform are
|
|
96 |
.RS 3
|
|
97 |
|
|
98 |
.LP
|
|
99 |
jmap \-dump:<\f2dump\-options\fP> pid
|
|
100 |
.RE
|
|
101 |
and
|
|
102 |
.RS 3
|
|
103 |
|
|
104 |
.LP
|
|
105 |
jmap \-histo[:live] pid
|
|
106 |
.RE
|
|
107 |
.SH "OPTIONS"
|
|
108 |
.LP
|
|
109 |
|
|
110 |
.LP
|
|
111 |
.TP 3
|
|
112 |
<no
|
|
113 |
option>
|
|
114 |
When 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.
|
|
115 |
.TP 3
|
|
116 |
\-dump:[live,]format=b,file=<filename>
|
|
117 |
Dumps 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 (Java Heap Analysis Tool) to read the generated file.
|
|
118 |
.TP 3
|
|
119 |
\-finalizerinfo
|
|
120 |
Prints information on objects awaiting finalization.
|
|
121 |
.TP 3
|
|
122 |
\-heap
|
|
123 |
Prints a heap summary. GC algorithm used, heap configuration and generation wise heap usage are printed.
|
|
124 |
.TP 3
|
|
125 |
\-histo[:live]
|
|
126 |
Prints 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.
|
|
127 |
.TP 3
|
|
128 |
\-permstat
|
|
129 |
Prints 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.
|
|
130 |
.TP 3
|
|
131 |
\-F
|
|
132 |
Force. Use with jmap \-dump or jmap \-histo option if the pid does not respond. The \f2live\fP suboption is not supported in this mode.
|
|
133 |
.TP 3
|
|
134 |
\-h
|
|
135 |
Prints a help message.
|
|
136 |
.br
|
|
137 |
.TP 3
|
|
138 |
\-help
|
|
139 |
Prints a help message.
|
|
140 |
.br
|
|
141 |
.TP 3
|
|
142 |
\-J<flag>
|
|
143 |
Passes <flag> to the Java virtual machine on which jmap is run.
|
|
144 |
|
|
145 |
.LP
|
|
146 |
.SH "SEE ALSO"
|
|
147 |
.LP
|
|
148 |
.RS 3
|
|
149 |
.TP 2
|
|
150 |
*
|
|
151 |
pmap (1)
|
|
152 |
.TP 2
|
|
153 |
*
|
|
154 |
jhat
|
|
155 |
.TP 2
|
|
156 |
*
|
|
157 |
jps
|
|
158 |
.TP 2
|
|
159 |
*
|
|
160 |
jsadebugd
|
|
161 |
.RE
|
|
162 |
|
|
163 |
.LP
|
|
164 |
|
|
165 |
.LP
|
|
166 |
|