jcmd.1 revision 4601
4601N/A." Copyright (c) 2011, 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."
4601N/A.TH jcmd 1 "22 Novembre 2011"
4601N/A
4601N/A.LP
4601N/A.SH "Name"
4601N/Ajcmd \- Diagnostic Command
4601N/A.br
4601N/A
4601N/A.LP
4601N/A.SH "SYNOPSIS"
4601N/A.LP
4601N/A.nf
4601N/A\f3
4601N/A.fl
4601N/A\fP\f3jcmd\fP [ option ]
4601N/A.fl
4601N/A\f3jcmd\fP <\fIpid\fR | \fImain class\fR> PerfCounter.print
4601N/A.fl
4601N/A\f3jcmd\fP <\fIpid\fR | \fImain class\fR> \fIcommand\fR [\fIarguments\fR]
4601N/A.fl
4601N/A\f3jcmd\fP <\fIpid\fR | \fImain class\fR> -f \fIfile\fR
4601N/A.fl
4601N/A.fl
4601N/A.fi
4601N/A
4601N/A.LP
4601N/A.SH "DESCRIPTION"
4601N/A.LP
4601N/A.LP
4601N/A\f3jcmd\fP is a utility to send diagnostic command requests to a Java
4601N/AVirtual Machine supporting this feature. Used 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. When a process id is specified on the command line, jcmd sends the diagnostic command request to the process with this id. When a main class is specified on the command line, jcmd sends the diagnostic command request to all Java processes with this main class. With the PerfCounter.print argument, jcmd prints the performance counters available on the targeted Java process(es). With the \-f option, jcmd sends to the targeted Java process(es) the diagnostic commands stored in the file \fIfile\fR.
4601N/A.LP
4601N/A\fP
4601N/A.fi
4601N/A
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
4601N/Aprints the list of running Java processes with their process id, their
4601N/Amain class and their command line arguments.
4601N/A.TP 3
4601N/A\-h
4601N/Aprints a help message.
4601N/A.br
4601N/A.br
4601N/A.TP 3
4601N/A\-help
4601N/Aprints a help message
4601N/A.br
4601N/A.RE
4601N/A
4601N/A.LP
4601N/A.SH "PARAMETERS"
4601N/A.LP
4601N/A.RS 3
4601N/A.TP 3
4601N/A\fIpid\fR
4601N/AIdentifies the process which will receive the diagnostic command requests. The process must be a Java process. To get a list of Java processes running on a machine, jps(1) or jcmd(1) may be used.
4601N/A.RE
4601N/A.LP
4601N/A.RS 3
4601N/A.TP 3
4601N/A\fImain class\fR
4601N/AMain class of the process which will receive the diagnostic command requests. If several running Java processes share this main class, the diagnostic command request will be sent to all these processes. To get a list of Java processes running on a machine, jps(1) or jcmd(1) may be used.
4601N/A.RE
4601N/A.RS 3
4601N/A.TP 3
4601N/A\fIcommand\fR [\fIarguments\fR]
4601N/AInvoke the diagnostic command called \fIcommand\fR on the targeted Java
4601N/Aprocess(es). The list of available diagnostic commands for a given
4601N/Aprocess can be obtained by invoking the 'help' command on this process.
4601N/AEach diagnostic command has its own set of \fIarguments\fR which can be
4601N/Aobtained by invoking the 'help' command followed by the command name.
4601N/A.RE
4601N/A.RS 3
4601N/A.TP 3
4601N/A\fIPerfCounter.print\fR
4601N/APrint the performance counters available on the targeted Java
4601N/Aprocess(es). The list of performance counters may vary with the Java
4601N/Aprocess.
4601N/A.RE
4601N/A.RS 3
4601N/A.TP 3
4601N/A\fI-f file\fR
4601N/ARead commands from \fIfile\fR and invoke them on the targeted Java
4601N/Aprocess(es). In \fIfile\fR, each command must be written on a single line.
4601N/ALines starting with # are ignored. Processing of \fIfile\fR ends when
4601N/Aall lines have been invoked or when a line containing the 'stop' keyword
4601N/Ais read.
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
4601N/A