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