src/jdk.jcmd/share/man/jmap.1
author jjg
Fri, 31 May 2019 17:27:28 -0700
changeset 55140 d4890c3721be
parent 52714 2e52aa822c57
permissions -rw-r--r--
8225134: Update man-page files Reviewed-by: erikj, mchung
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
     1
.\" Copyright (c) 1994, 2019, Oracle and/or its affiliates. All rights reserved.
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     2
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     3
.\"
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     4
.\" This code is free software; you can redistribute it and/or modify it
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     5
.\" under the terms of the GNU General Public License version 2 only, as
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     6
.\" published by the Free Software Foundation.
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     7
.\"
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     8
.\" This code is distributed in the hope that it will be useful, but WITHOUT
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     9
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    10
.\" FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    11
.\" version 2 for more details (a copy is included in the LICENSE file that
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    12
.\" accompanied this code).
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    13
.\"
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    14
.\" You should have received a copy of the GNU General Public License version
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    15
.\" 2 along with this work; if not, write to the Free Software Foundation,
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    16
.\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    17
.\"
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    18
.\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    19
.\" or visit www.oracle.com if you need additional information or have any
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    20
.\" questions.
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    21
.\"
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    22
.\" Automatically generated by Pandoc 2.3.1
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
    23
.\"
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    24
.TH "JMAP" "1" "2018" "JDK 13" "JDK Commands"
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    25
.hy
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    26
.SH NAME
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    27
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    28
jmap \- print details of a specified process
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    29
.SH SYNOPSIS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    30
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    31
\f[B]Note:\f[R] This command is experimental\ and unsupported.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    32
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    33
\f[CB]jmap\f[R] [\f[I]options\f[R]] \f[I]pid\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    34
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    35
.B \f[I]options\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    36
This represents the \f[CB]jmap\f[R] command\-line options.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    37
See \f[B]Options for the jmap Command\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    38
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    39
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    40
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    41
.B \f[I]pid\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    42
The process ID for which the information specified by the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    43
\f[I]options\f[R] is to be printed.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    44
The process must be a Java process.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    45
To get a list of Java processes running on a machine, use either the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    46
\f[CB]ps\f[R] command or, if the JVM processes are not running in a
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    47
separate docker instance, the \f[B]jps\f[R] command.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    48
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    49
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    50
\f[B]Note:\f[R] JDK 10 has added support for using the Attach API when
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    51
attaching to Java processes running in a separate docker process.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    52
However, the \f[CB]jps\f[R] command will not list the JVM processes that
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    53
are running in a separate docker instance.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    54
If you are trying to connect a Linux host with a Virtual Machine that is
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    55
in a docker container, you must use tools such as \f[CB]ps\f[R] to look up
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    56
the PID of the JVM.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    57
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    58
.SH DESCRIPTION
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    59
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    60
The \f[CB]jmap\f[R] command prints details of a specified running process.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    61
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    62
\f[B]Note:\f[R]
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
    63
.PP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    64
This command is unsupported and might not be available in future
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    65
releases of the JDK.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    66
On Windows Systems where the \f[CB]dbgeng.dll\f[R] file isn\[aq]t present,
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    67
the Debugging Tools for Windows must be installed to make these tools
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    68
work.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    69
The \f[CB]PATH\f[R] environment variable should contain the location of
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    70
the \f[CB]jvm.dll\f[R] file that\[aq]s used by the target process or the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    71
location from which the core dump file was produced.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    72
.SH OPTIONS FOR THE JMAP COMMAND
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
    73
.TP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    74
.B \f[CB]\-clstats\f[R] \f[I]pid\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    75
Connects to a running process and prints class loader statistics of Java
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    76
heap.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    77
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    78
.RE
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
    79
.TP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    80
.B \f[CB]\-finalizerinfo\f[R] \f[I]pid\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    81
Connects to a running process and prints information on objects awaiting
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    82
finalization.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    83
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    84
.RE
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
    85
.TP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    86
.B \f[CB]\-histo\f[R][\f[CB]:live\f[R]] \f[I]pid\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    87
Connects to a running process and prints a histogram of the Java object
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    88
heap.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    89
If the \f[CB]live\f[R] suboption is specified, it then counts only live
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    90
objects.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    91
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    92
.RE
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
    93
.TP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    94
.B \f[CB]\-dump:\f[R]\f[I]dump_options\f[R] \f[I]pid\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    95
Connects to a running process and dumps the Java heap.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    96
The \f[I]dump_options\f[R] include:
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    97
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    98
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    99
\f[CB]live\f[R] \-\-\- When specified, dumps only the live objects; if not
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   100
specified, then dumps all objects in the heap.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   101
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   102
\f[CB]format=b\f[R] \-\-\- Dumps the Java heap in \f[CB]hprof\f[R] binary
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   103
format
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   104
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   105
\f[CB]file=\f[R]\f[I]filename\f[R] \-\-\- Dumps the heap to
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   106
\f[I]filename\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   107
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   108
Example: \f[CB]jmap\ \-dump:live,format=b,file=heap.bin\f[R] \f[I]pid\f[R]
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   109
.RE