jcmd.1 revision 5183
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk." Copyright (c) 1994, 2012, Oracle and/or its affiliates. All rights reserved.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk." This code is free software; you can redistribute it and/or modify it
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk." under the terms of the GNU General Public License version 2 only, as
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk." published by the Free Software Foundation.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk." This code is distributed in the hope that it will be useful, but WITHOUT
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk." version 2 for more details (a copy is included in the LICENSE file that
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk." accompanied this code).
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk." You should have received a copy of the GNU General Public License version
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk." 2 along with this work; if not, write to the Free Software Foundation,
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk." or visit www.oracle.com if you need additional information or have any
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk." questions.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk.TH jcmd 1 "10 Jul 2012"
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenkjcmd \- Diagnostic Command
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk\f3jcmd\fP is a utility to send diagnostic command requests to a running Java Virtual Machine.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk.SH "SYNOPSIS"
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk \fP\f3jcmd\fP [ option ]
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk \f3jcmd\fP <\f2pid\fP | \f2main class\fP> PerfCounter.print
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk \f3jcmd\fP <\f2pid\fP | \f2main class\fP> \f2command\fP [\f2arguments\fP]
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk \f3jcmd\fP <\f2pid\fP | \f2main class\fP> \-f \f2file\fP
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk.SH "DESCRIPTION"
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk\f3jcmd\fP is a utility to send diagnostic command requests to a Java Virtual Machine supporting this feature.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenkUsed 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.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenkWhen a process id is specified on the command line, jcmd sends the diagnostic command request to the process with this id.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenkWhen 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.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenkWith the PerfCounter.print argument, jcmd prints the performance counters available on the targeted Java process(es).
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenkWith the \-f option, jcmd sends to the targeted Java process(es) the diagnostic commands stored in the file \f2file\fP.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk.SH "OPTIONS"
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenkOptions are mutually exclusive. Options, if used, should follow immediately after the command name.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenkPrints the list of running Java processes with their process id, their main class and their command line arguments.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenkPrints a help message.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenkPrints a help message.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk.SH "PARAMETERS"
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenkIdentifies 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).
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenkMain 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).
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenkcommand [arguments]
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenkInvoke 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.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenkPrint the performance counters available on the targeted Java process(es). The list of performance counters may vary with the Java process.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenkRead 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.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk.SH "SEE ALSO"