4880N/A." Copyright (c) 1994, 2012, Oracle and/or its affiliates. All rights reserved.
4601N/A." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4601N/A."
4601N/A." This code is free software; you can redistribute it and/or modify it
4601N/A." under the terms of the GNU General Public License version 2 only, as
4601N/A." published by the Free Software Foundation.
4601N/A."
4601N/A." This code is distributed in the hope that it will be useful, but WITHOUT
4601N/A." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4601N/A." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4601N/A." version 2 for more details (a copy is included in the LICENSE file that
4601N/A." accompanied this code).
4601N/A."
4601N/A." You should have received a copy of the GNU General Public License version
4601N/A." 2 along with this work; if not, write to the Free Software Foundation,
4601N/A." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4601N/A."
4601N/A." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4601N/A." or visit www.oracle.com if you need additional information or have any
4601N/A." questions.
4601N/A."
5183N/A.TH jcmd 1 "10 Jul 2012"
4601N/A
4601N/A.LP
4601N/A.SH "Name"
4601N/Ajcmd \- Diagnostic Command
4880N/A.LP
4880N/A.LP
4880N/A\f3jcmd\fP is a utility to send diagnostic command requests to a running Java Virtual Machine.
4601N/A.LP
4601N/A.SH "SYNOPSIS"
4601N/A.LP
4601N/A.nf
4601N/A\f3
4601N/A.fl
4880N/A \fP\f3jcmd\fP [ option ]
4601N/A.fl
4880N/A \f3jcmd\fP <\f2pid\fP | \f2main class\fP> PerfCounter.print
4601N/A.fl
4880N/A \f3jcmd\fP <\f2pid\fP | \f2main class\fP> \f2command\fP [\f2arguments\fP]
4601N/A.fl
4880N/A \f3jcmd\fP <\f2pid\fP | \f2main class\fP> \-f \f2file\fP
4601N/A.fl
4601N/A.fi
4601N/A
4601N/A.LP
4601N/A.SH "DESCRIPTION"
4601N/A.LP
4601N/A.LP
4880N/A\f3jcmd\fP is a utility to send diagnostic command requests to a Java Virtual Machine supporting this feature.
4880N/A.LP
4880N/A.LP
4880N/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.
4880N/A.LP
4880N/A.LP
4880N/AWhen a process id is specified on the command line, jcmd sends the diagnostic command request to the process with this id.
4880N/A.LP
4601N/A.LP
5183N/AWhen a main class is specified on the command line, jcmd sends the diagnostic command request to all Java processes for which the command line argument is a substring of the Java process' main class.
4880N/A.LP
4880N/A.LP
4880N/AWith the PerfCounter.print argument, jcmd prints the performance counters available on the targeted Java process(es).
4880N/A.LP
4880N/A.LP
4880N/AWith the \-f option, jcmd sends to the targeted Java process(es) the diagnostic commands stored in the file \f2file\fP.
4880N/A.LP
4601N/A.SH "OPTIONS"
4601N/A.LP
4601N/A.LP
4601N/AOptions are mutually exclusive. Options, if used, should follow immediately after the command name.
4601N/A.LP
4601N/A.RS 3
4601N/A.TP 3
4601N/A\-l
4880N/APrints the list of running Java processes with their process id, their main class and their command line arguments.
4601N/A.TP 3
4601N/A\-h
4880N/APrints a help message.
4601N/A.TP 3
4601N/A\-help
4880N/APrints a help message.
4601N/A.RE
4601N/A
4601N/A.LP
4601N/A.SH "PARAMETERS"
4601N/A.LP
4601N/A.RS 3
4601N/A.TP 3
4880N/Apid
4880N/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).
4601N/A.TP 3
4880N/Amain class
5183N/AMain class of the process that receives the diagnostic command requests. When matching processes, any process whose main class name contains the specified string as a substring will be matched. 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).
4601N/A.TP 3
4880N/Acommand [arguments]
5183N/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 the command name followed by \f3help\fP.
4601N/A.TP 3
5183N/APerfCounter.print
4880N/APrint the performance counters available on the targeted Java process(es). The list of performance counters may vary with the Java process.
4601N/A.TP 3
4880N/A\-f file
4880N/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.
4880N/A.RE
4880N/A
4601N/A.LP
4601N/A.SH "SEE ALSO"
4601N/A.LP
4601N/A.RS 3
4601N/A.TP 2
4601N/Ao
4601N/Ajps(1)
4601N/A.RE
4601N/A
4880N/A.LP
4880N/A.LP
4880N/Ajps(1)
4880N/A.LP
4601N/A