JVM Tutorials - Herong's Tutorial Examples - v5.13, by Herong Yang
JRockit Management Console on HotSpot JVM
This section provides a tutorial example on how to use Oracle JRockit Management Console to monitor and manage HotSpot JVM instances.
JRockit Management Console can also be used to monitor and manage HotSpot JVM as shown in the tutorial:
1. Compile and run LongWhile.java with HotSpot 1.6.0 in a command window:
>\Progra~1\java\jdk1.6.0_45\bin\javac LongWhile.java >\Progra~1\java\jdk1.6.0_45\bin\java LongWhile Free memory: 16055544 Total memory: 16252928
2. Compile and run LongSleep2.java with JRockit R28.2.7 in another command window:
>\Progra~1\java\jrockit-jdk1.6.0_45-R28.2.7-4.1.0\bin\javac \ LongSleep2.java >\Progra~1\java\jrockit-jdk1.6.0_45-R28.2.7-4.1.0\bin\java LongSleep2 Total memory: 67108864 Free memory: 63434800 Used memory: 3674064
3. Restart JRockit Mission Control 4.1.0 and go to the JVM Browser panel. 3 JVM instances will be discovered under the Local folder:
[1.6][HotSpot] LongWhile (9,636) [1.6]LongSleep2 (11,272) This Mission Control
4. Right mouse click on "[1.6][HotSpot] LongWhile (9,636)" and select "Start Console". The JRockit Management Console will be connected to the HotSpot JVM instance.
Table of Contents
JVM (Java Virtual Machine) Specification
Java HotSpot VM - JVM by Oracle/Sun
java.lang.Runtime Class - The JVM Instance
java.lang.System Class - The Operating System
ClassLoader Class - Class Loaders
Class Class - Class Reflections
JVM Stack, Frame and Stack Overflow
Thread Testing Program and Result
CPU Impact of Multi-Thread Applications
I/O Impact of Multi-Thread Applications
Micro Benchmark Runner and JVM Options
Micro Benchmark Tests on "int" Operations
Micro Benchmark Tests on "long" Operations
Micro Benchmark Tests in JIT Compilation Mode
Micro Benchmark Tests on "float" and "double" Operations
►JRockit JVM 28.2.7 by Oracle Corporation
Downloading and Installing JRockit R28.2.7
Running Java Programs on JRockit R28.2.7
Memory Footprint of JRockit R28.2.7
What Is JRockit Mission Control?
Running JRockit Mission Control
What JRockit Management Console