jcmd.1 revision 4880
1178N/A." Copyright (c) 1994, 2012, Oracle and/or its affiliates. All rights reserved.
1178N/A." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1178N/A."
1178N/A." This code is free software; you can redistribute it and/or modify it
1178N/A." under the terms of the GNU General Public License version 2 only, as
1178N/A." published by the Free Software Foundation.
1178N/A."
1178N/A." This code is distributed in the hope that it will be useful, but WITHOUT
1178N/A." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1178N/A." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1178N/A." version 2 for more details (a copy is included in the LICENSE file that
1178N/A." accompanied this code).
1178N/A."
1178N/A." You should have received a copy of the GNU General Public License version
1178N/A." 2 along with this work; if not, write to the Free Software Foundation,
1178N/A." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1178N/A."
2362N/A." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A." or visit www.oracle.com if you need additional information or have any
2362N/A." questions.
1178N/A."
1178N/A.TH jcmd 1 "16 Mar 2012"
1178N/A
1178N/A.LP
1178N/A.SH "Name"
1178N/Ajcmd \- Diagnostic Command
1178N/A.LP
1178N/A.LP
1178N/A\f3jcmd\fP is a utility to send diagnostic command requests to a running Java Virtual Machine.
1178N/A.LP
1178N/A.SH "SYNOPSIS"
1178N/A.LP
1178N/A.nf
1178N/A\f3
1178N/A.fl
1178N/A \fP\f3jcmd\fP [ option ]
1178N/A.fl
1178N/A \f3jcmd\fP <\f2pid\fP | \f2main class\fP> PerfCounter.print
0N/A.fl
1178N/A \f3jcmd\fP <\f2pid\fP | \f2main class\fP> \f2command\fP [\f2arguments\fP]
1178N/A.fl
1178N/A \f3jcmd\fP <\f2pid\fP | \f2main class\fP> \-f \f2file\fP
1178N/A.fl
1178N/A.fi
1178N/A
1178N/A.LP
1178N/A.SH "DESCRIPTION"
1178N/A.LP
1178N/A.LP
1178N/A\f3jcmd\fP is a utility to send diagnostic command requests to a Java Virtual Machine supporting this feature.
1178N/A.LP
1178N/A.LP
1178N/AUsed without arguments or with the \-l option, jcmd prints the list of running Java processes with their process id, their main class and their command line arguments.
1178N/A.LP
1178N/A.LP
1178N/AWhen a process id is specified on the command line, jcmd sends the diagnostic command request to the process with this id.
1178N/A.LP
1178N/A.LP
0N/AWhen a main class is specified on the command line, jcmd sends the diagnostic command request to all Java processes with this main class.
1178N/A.LP
1178N/A.LP
1178N/AWith the PerfCounter.print argument, jcmd prints the performance counters available on the targeted Java process(es).
1178N/A.LP
1178N/A.LP
1178N/AWith the \-f option, jcmd sends to the targeted Java process(es) the diagnostic commands stored in the file \f2file\fP.
1178N/A.LP
1178N/A.SH "OPTIONS"
1178N/A.LP
1178N/A.LP
1178N/AOptions are mutually exclusive. Options, if used, should follow immediately after the command name.
1178N/A.LP
1178N/A.RS 3
1178N/A.TP 3
1178N/A\-l
1178N/APrints the list of running Java processes with their process id, their main class and their command line arguments.
1178N/A.br
1178N/A.TP 3
1178N/A\-h
1178N/APrints a help message.
0N/A.br
1178N/A.TP 3
0N/A\-help
1178N/APrints a help message.
0N/A.RE
1178N/A
0N/A.LP
1178N/A.SH "PARAMETERS"
1178N/A.LP
1178N/A.RS 3
1178N/A.TP 3
1178N/Apid
1178N/AIdentifies the process that receives the diagnostic command requests. The process must be a Java process. To get a list of Java processes running on a machine, use jps(1) or jcmd(1).
1178N/A.br
1178N/A.TP 3
1178N/Amain class
0N/AMain class of the process that receives the diagnostic command requests. If several running Java processes share this main class, the diagnostic command request is sent to all these processes. To get a list of Java processes running on a machine, use jps(1) or jcmd(1).
1178N/A.br
1178N/A.TP 3
1178N/Acommand [arguments]
1178N/AInvoke the diagnostic command called \f2command\fP on the targeted Java process(es). The list of available diagnostic commands for a given process can be obtained by invoking the \f3help\fP command on this process. Each diagnostic command has its own set of \f2arguments\fP, which can be obtained by invoking the \f3help\fP command followed by the command name.
1178N/A.br
1178N/A.TP 3
1178N/ACounter.print
1178N/APrint the performance counters available on the targeted Java process(es). The list of performance counters may vary with the Java process.
1178N/A.br
1178N/A.TP 3
1178N/A\-f file
0N/ARead commands from \f2file\fP and invoke them on the targeted Java process(es). In \f2file\fP, each command must be written on a single line. Lines starting with # are ignored. Processing of \f2file\fP ends when all lines have been invoked or when a line containing the \f3stop\fP keyword is read.
1178N/A.RE
1178N/A
1178N/A.LP
1178N/A.SH "SEE ALSO"
1178N/A.LP
1178N/A.RS 3
1178N/A.TP 2
1178N/Ao
1178N/Ajps(1)
1178N/A.RE
1178N/A
1178N/A.LP
1178N/A.LP
0N/Ajps(1)
1178N/A.LP
1178N/A
1178N/A