jcmd.1 revision 4880
4033N/A." or visit www.oracle.com if you need additional information or have any
4033N/A\f3jcmd\fP is a utility to send diagnostic command requests to a running Java Virtual Machine.
4033N/A \f3jcmd\fP <\f2pid\fP | \f2main class\fP> PerfCounter.print
4033N/A\f3jcmd\fP is a utility to send diagnostic command requests to a Java Virtual Machine supporting this feature.
4033N/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.
4033N/AWhen a process id is specified on the command line, jcmd sends the diagnostic command request to the process with this id.
4033N/AWhen a main class is specified on the command line, jcmd sends the diagnostic command request to all Java processes with this main class.
4033N/AWith the PerfCounter.print argument, jcmd prints the performance counters available on the targeted Java process(es).
4935N/AWith the \-f option, jcmd sends to the targeted Java process(es) the diagnostic commands stored in the file \f2file\fP.
4033N/AOptions are mutually exclusive. Options, if used, should follow immediately after the command name.
4033N/APrints the list of running Java processes with their process id, their main class and their command line arguments.
4033N/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).
4033N/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).
4033N/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.
4033N/APrint the performance counters available on the targeted Java process(es). The list of performance counters may vary with the Java process.
4033N/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.