This chapter is dedicated to JRCMD—one of the simplest tools in the JRockit distribution. JRCMD is a small command-line tool that can be used to interact with a running JRockit instance. It can also be used to list all running instances of the JRockit JVM on a system.
In this chapter, you will learn:
How to use JRCMD to list the locally running JVMs on your machine
How to use JRCMD to execute diagnostic commands on one or all JVMs running locally on your machine
How to override the SIGQUIT signal handler to make JRockit run diagnostic commands of your choice instead of printing stack dumps, which is the default action
How to utilize JRCMD to solve various tasks such as:
Heap analysis
Exception profiling
Native memory tracking
Controlling the management server lifecycle
Controlling JRockit Flight Recorder from the command line
The last part of this chapter is in a format that makes it usable as a JRCMD reference. The reference part lists the various diagnostic commands in alphabetical...