src/jdk.jcmd/share/man/jps.1
author phh
Sat, 30 Nov 2019 14:33:05 -0800
changeset 59330 5b96c12f909d
parent 55140 d4890c3721be
permissions -rw-r--r--
8234541: C1 emits an empty message when it inlines successfully Summary: Use "inline" as the message when successfull Reviewed-by: thartmann, mdoerr Contributed-by: navy.xliu@gmail.com
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 "JPS" "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
jps \- list the instrumented JVMs on the target system
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]jps\f[R] [\f[CB]\-q\f[R]] [\f[CB]\-mlvV\f[R]] [\f[I]hostid\f[R]]
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
    34
.PP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    35
\f[CB]jps\f[R] [\f[CB]\-help\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    36
.SH OPTIONS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    37
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    38
.B \f[CB]\-q\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    39
Suppresses the output of the class name, JAR file name, and arguments
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    40
passed to the \f[CB]main\f[R] method, producing a list of only local JVM
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    41
identifiers.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    42
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    43
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    44
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    45
.B \f[CB]\-mlvV\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    46
You can specify any combination of these options.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    47
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    48
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    49
\f[CB]\-m\f[R] displays the arguments passed to the \f[CB]main\f[R] method.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    50
The output may be \f[CB]null\f[R] for embedded JVMs.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    51
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    52
\f[CB]\-l\f[R] displays the full package name for the application\[aq]s
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    53
\f[CB]main\f[R] class or the full path name to the application\[aq]s JAR
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    54
file.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    55
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    56
\f[CB]\-v\f[R] displays the arguments passed to the JVM.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    57
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    58
\f[CB]\-V\f[R] suppresses the output of the class name, JAR file name, and
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    59
arguments passed to the \f[CB]main\f[R] method, producing a list of only
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    60
local JVM identifiers.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    61
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    62
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    63
.B \f[I]hostid\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    64
The identifier of the host for which the process report should be
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    65
generated.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    66
The \f[CB]hostid\f[R] can include optional components that indicate the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    67
communications protocol, port number, and other implementation specific
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    68
data.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    69
See \f[B]Host Identifier\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    70
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    71
.RE
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
    72
.TP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    73
.B \f[CB]\-help\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    74
Displays the help message for the \f[CB]jps\f[R] command.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    75
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    76
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    77
.SH DESCRIPTION
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    78
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    79
The \f[CB]jps\f[R] command lists the instrumented Java HotSpot VMs on the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    80
target system.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    81
The command is limited to reporting information on JVMs for which it has
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    82
the access permissions.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    83
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    84
\f[B]Note:\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    85
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    86
JDK 10 added support for using the Attach API when attaching to Java
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    87
processes running in a separate docker process.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    88
However, the \f[CB]jps\f[R] tool cannot see JVM processes running in a
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    89
separate docker instance.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    90
If you are trying to connect a Linux host with a Virtual Machine within
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    91
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
    92
the PID of the JVM and then specify the PID on the command line of the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    93
tools that accept the PID.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    94
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    95
If the \f[CB]jps\f[R] command is run without specifying a \f[CB]hostid\f[R],
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    96
then it searches for instrumented JVMs on the local host.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    97
If started with a \f[CB]hostid\f[R], then it searches for JVMs on the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    98
indicated host, using the specified protocol and port.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    99
A \f[CB]jstatd\f[R] process is assumed to be running on the target host.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   100
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   101
The \f[CB]jps\f[R] command reports the local JVM identifier, or
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   102
\f[CB]lvmid\f[R], for each instrumented JVM found on the target system.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   103
The \f[CB]lvmid\f[R] is typically, but not necessarily, the operating
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   104
system\[aq]s process identifier for the JVM process.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   105
With no options, the \f[CB]jps\f[R] command lists each Java
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   106
application\[aq]s \f[CB]lvmid\f[R] followed by the short form of the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   107
application\[aq]s class name or jar file name.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   108
The short form of the class name or JAR file name omits the class\[aq]s
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   109
package information or the JAR files path information.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   110
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   111
The \f[CB]jps\f[R] command uses the Java launcher to find the class name
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   112
and arguments passed to the main method.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   113
If the target JVM is started with a custom launcher, then the class or
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   114
JAR file name, and the arguments to the \f[CB]main\f[R] method aren\[aq]t
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   115
available.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   116
In this case, the \f[CB]jps\f[R] command outputs the string
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   117
\f[CB]Unknown\f[R] for the class name, or JAR file name, and for the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   118
arguments to the \f[CB]main\f[R] method.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   119
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   120
The list of JVMs produced by the \f[CB]jps\f[R] command can be limited by
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   121
the permissions granted to the principal running the command.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   122
The command lists only the JVMs for which the principal has access
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   123
rights as determined by operating system\-specific access control
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   124
mechanisms.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   125
.SH HOST IDENTIFIER
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   126
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   127
The host identifier, or \f[CB]hostid\f[R], is a string that indicates the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   128
target system.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   129
The syntax of the \f[CB]hostid\f[R] string corresponds to the syntax of a
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   130
URI:
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   131
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   132
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   133
[\f[I]protocol\f[R]\f[CB]:\f[R]][[\f[CB]//\f[R]]\f[I]hostname\f[R]][\f[CB]:\f[R]\f[I]port\f[R]][\f[CB]/\f[R]\f[I]servername\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   134
.RE
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
   135
.TP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   136
.B \f[I]protocol\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   137
The communications protocol.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   138
If the \f[I]protocol\f[R] is omitted and a \f[I]hostname\f[R] isn\[aq]t
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   139
specified, then the default protocol is a platform\-specific, optimized,
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   140
local protocol.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   141
If the protocol is omitted and a host name is specified, then the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   142
default protocol is \f[CB]rmi\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   143
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   144
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   145
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   146
.B \f[I]hostname\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   147
A host name or IP address that indicates the target host.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   148
If you omit the \f[I]hostname\f[R] parameter, then the target host is the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   149
local host.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   150
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   151
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   152
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   153
.B \f[I]port\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   154
The default port for communicating with the remote server.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   155
If the \f[I]hostname\f[R] parameter is omitted or the \f[I]protocol\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   156
parameter specifies an optimized, local protocol, then the \f[I]port\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   157
parameter is ignored.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   158
Otherwise, treatment of the \f[I]port\f[R] parameter is
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   159
implementation\-specific.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   160
For the default \f[CB]rmi\f[R] protocol, the \f[I]port\f[R] parameter
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   161
indicates the port number for the \f[CB]rmiregistry\f[R] on the remote
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   162
host.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   163
If the \f[I]port\f[R] parameter is omitted, and the \f[I]protocol\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   164
parameter indicates \f[CB]rmi\f[R], then the default \f[CB]rmiregistry\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   165
port (\f[CB]1099\f[R]) is used.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   166
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   167
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   168
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   169
.B \f[I]servername\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   170
The treatment of this parameter depends on the implementation.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   171
For the optimized, local protocol, this field is ignored.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   172
For the \f[CB]rmi\f[R] protocol, this parameter is a string that
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   173
represents the name of the RMI remote object on the remote host.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   174
See the \f[B]jstatd\f[R] command \f[CB]\-n\f[R] option.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   175
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   176
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   177
.SH OUTPUT FORMAT OF THE JPS COMMAND
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
   178
.PP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   179
The output of the \f[CB]jps\f[R] command has the following pattern:
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   180
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   181
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   182
\f[I]lvmid\f[R] [ [ \f[I]classname\f[R] | \f[I]JARfilename\f[R] |
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   183
\f[CB]"Unknown"\f[R]] [ \f[I]arg\f[R]* ] [ \f[I]jvmarg\f[R]* ] ]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   184
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   185
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   186
All output tokens are separated by white space.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   187
An \f[CB]arg\f[R] value that includes embedded white space introduces
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   188
ambiguity when attempting to map arguments to their actual positional
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   189
parameters.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   190
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   191
\f[B]Note:\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   192
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   193
It\[aq]s recommended that you don\[aq]t write scripts to parse
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   194
\f[CB]jps\f[R] output because the format might change in future releases.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   195
If you write scripts that parse \f[CB]jps\f[R] output, then expect to
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   196
modify them for future releases of this tool.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   197
.SH EXAMPLES
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   198
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   199
This section provides examples of the \f[CB]jps\f[R] command.
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
   200
.PP
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
   201
List the instrumented JVMs on the local host:
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   202
.IP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   203
.nf
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   204
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   205
jps
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   206
18027\ Java2Demo.JAR
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   207
18032\ jps
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   208
18005\ jstat
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   209
\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   210
.fi
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   211
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   212
The following example lists the instrumented JVMs on a remote host.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   213
This example assumes that the \f[CB]jstat\f[R] server and either the its
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   214
internal RMI registry or a separate external \f[CB]rmiregistry\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   215
process are running on the remote host on the default port (port
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   216
\f[CB]1099\f[R]).
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   217
It also assumes that the local host has appropriate permissions to
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   218
access the remote host.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   219
This example includes the \f[CB]\-l\f[R] option to output the long form of
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   220
the class names or JAR file names.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   221
.IP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   222
.nf
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   223
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   224
jps\ \-l\ remote.domain
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   225
3002\ /opt/jdk1.7.0/demo/jfc/Java2D/Java2Demo.JAR
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   226
2857\ sun.tools.jstatd.jstatd
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   227
\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   228
.fi
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   229
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   230
The following example lists the instrumented JVMs on a remote host with
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   231
a nondefault port for the RMI registry.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   232
This example assumes that the \f[CB]jstatd\f[R] server, with an internal
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   233
RMI registry bound to port \f[CB]2002\f[R], is running on the remote host.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   234
This example also uses the \f[CB]\-m\f[R] option to include the arguments
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   235
passed to the \f[CB]main\f[R] method of each of the listed Java
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   236
applications.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   237
.IP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   238
.nf
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   239
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   240
jps\ \-m\ remote.domain:2002
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   241
3002\ /opt/jdk1.7.0/demo/jfc/Java2D/Java2Demo.JAR
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   242
3102\ sun.tools.jstatd.jstatd\ \-p\ 2002
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   243
\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   244
.fi