JVM Tutorials - Herong's Tutorial Examples
Dr. Herong Yang, Version 4.10

Hardware, OS and JVM Configurations

This section describes hardware, operating system and JVM configurations in which micro benchmark tests are performed.

The first thing I need to do is to record my hardware, operating system, and JVM configurations:

Hardware:
   Processor: Intel Core 2 CPU
   Speed: T7200 @ 2.00GHz
   Memory: 997 MHz, 1.00 GB of RAM

Operating system:
   Microsoft Windows XP Professional
   Version 2002
   Service pack 3
   
JVM:
   java version "1.6.0_06"
   Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
   Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)

All tests included in this chapter are done with above configurations.

Last update: 2010.

Table of Contents

 About This Book

 Download and Install Java SE 1.6 Update 2

 java.lang.Runtime Class - The JVM Instance

 java.lang.System Class - The Operating System

 ClassLoader Class - Class Loaders

 Class Class - Class Reflections

 Sun's JVM - Java HotSpot VM

 JRockit JVM 7.0 by BEA Systems

 JRockit JVM 8.0 by BEA Systems

 Memory Management Rules and Tests

 Garbage Collection Tests

 Stack Overflow Tests

 Thread Testing Program and Result

 StringBuffer Testing Program and Result

 CDS (Class Data Sharing)

 Micro Benchmark Runner and JVM Options

Micro Benchmark Tests on "int" Operations

 Revised BenchmarkRunner.java

Hardware, OS and JVM Configurations

 "int" Empty Loop: 16 Nanoseconds per Step

 "int" Assignment Only: 14 Nanoseconds per Step

 "int" Shift and Assignment: 17 Nanoseconds per Step

 "int" Add and Assignment: 17 Nanoseconds per Step

 "int" Multiply and Assignment: 17 Nanoseconds per Step

 "int" Division and Assignment: 19 Nanoseconds per Step

 Micro Benchmark Tests on "long" Operations

 Micro Benchmark Tests in JIT Compilation Mode

 Micro Benchmark Tests on "float" and "double" Operations

 References

 PDF Printing Version

Dr. Herong Yang, updated in 2010
Hardware, OS and JVM Configurations