2012-01-04 11:49:35 +00:00
|
|
|
Usage: jcmd <pid | main class> <command ...|PerfCounter.print|-f file>
|
2014-01-16 10:37:49 +00:00
|
|
|
or: jcmd -l
|
|
|
|
or: jcmd -h
|
2012-01-04 11:49:35 +00:00
|
|
|
|
2014-01-16 10:37:49 +00:00
|
|
|
command must be a valid jcmd command for the selected jvm.
|
2012-01-04 11:49:35 +00:00
|
|
|
Use the command "help" to see which commands are available.
|
|
|
|
If the pid is 0, commands will be sent to all Java processes.
|
|
|
|
The main class argument will be used to match (either partially
|
|
|
|
or fully) the class used to start Java.
|
2016-02-06 11:22:51 +00:00
|
|
|
If no options are given, lists Java processes (same as -l).
|
2012-01-04 11:49:35 +00:00
|
|
|
|
2014-01-16 10:37:49 +00:00
|
|
|
PerfCounter.print display the counters exposed by this process
|
2012-01-04 11:49:35 +00:00
|
|
|
-f read and execute commands from the file
|
|
|
|
-l list JVM processes on the local machine
|
2018-01-16 07:48:34 +00:00
|
|
|
-? -h --help print this help message
|