The first API we will discuss is called JMAPI, short for the JRockit Management API. It is a lightweight Java-only API which provides in-process access to various management features. This API has existed since very early versions of JRockit. However, parts of the API were marked as deprecated in R28.0.0 and its future is uncertain.
JMAPI was the JVM-side API that enabled the functionality of the earliest versions of the JRockit Management Console. In fact, even today, if a connection is established to a 1.4 version of JRockit, a proprietary internal protocol called the Rockit Management Protocol (RMP) will be used. This protocol will, in turn, use JMAPI to gather data and change the various runtime parameters of the JVM.
The next few pages contain various examples of things that can be done using JMAPI. The easiest way to compile the examples is to use the JRockit JDK. This requires no special configuration, as the necessary classes are available in the JRockit rt.jar
that is part...