Sometimes a command-line utility is exactly the right tool for the job. You may want to send commands to JVMs in batch scripts, or you may be operating in a very secure environment and only have a command line at your disposal through SSH. Whatever the reason, JRCMD is a small and powerful tool for sending commands to locally running instances of the JRockit JVM from the command line.
The basic usage pattern is to first execute JRCMD with no arguments to list the JVMs currently running on the system. The JVMs will be listed by operating system Process ID (PID) followed by the class name of the main class of the Java application running in the JVM.
For example:
C:\>JROCKIT_HOME\bin\jrcmd 2416 com.jrockit.mc.rcp.start.MCMain 19344 jrockit.tools.jrcmd.JrCmd
In the previous example, there were two JVM instances running when JRCMD was executed—an instance running JRockit Mission Control and, as JRCMD is a Java application too, the JVM running JRCMD itself.
The JRockit instance...