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