JVM Tutorials - Herong's Tutorial Examples - v5.13, by Herong Yang
Running JRockit Mission Control
This section provides a tutorial example on how to run JRockit Mission Control 4.1 installed as part of JRockit R28.2.7.
Here is what I did to try JRockit Mission Control on my Windows 7 system:
1. Run my LongWhile.java program with JRockit JVM R28.2.7 in the command window:
>type LongWhile.java /* LongWhile.java * Copyright (c) HerongYang.com. All Rights Reserved. */ class LongWhile { public static void main(String[] a) { Runtime rt = Runtime.getRuntime(); System.out.println(" Free memory: " + rt.freeMemory()); System.out.println("Total memory: " + rt.totalMemory()); while (true); } } >\Progra~1\java\jrockit-jdk1.6.0_45-R28.2.7-4.1.0\bin\javac \ LongWhile.java >\Progra~1\java\jrockit-jdk1.6.0_45-R28.2.7-4.1.0\bin\java LongWhile Free memory: 63434800 Total memory: 67108864
2. Launch JRockit Mission Control in another command window:
>\Progra~1\java\jrockit-jdk1.6.0_45-R28.2.7-4.1.0\bin\jrmc
3. Click "Window" > "Show View" > "JVM Browser" menu, you will see the "JVM Browser" panel displayed.
4. Open the "Local" folder under "Discovered", you will see two entries "[1.6] LongWhile (6,804)" and "This Mission Control" representing 2 JVM instances that are running on my local machine.
5. Right mouse click on "[1.6] LongWhile (6,804)" and select "Start Console", you will see the overview dashboard displaying general information on my "LongWhile" JVM instance. See the screenshot below:
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