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

Running Java HotSpot Server VM

This section provides you a tutorial example on how to run Java HotSpot Server VM - run Java command with -server option: 'java -server'.

The following notes were taken in 2007.

After installing JDK 6u2, the Java HotSpot Server VM should be available on my machine. To verify this, run the following command in a command window:

C:\>\progra~1\java\jdk1.6.0_02\bin\java -server -version
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b06)
Java HotSpot(TM) Server VM (build 1.6.0_02-b06, mixed mode)

The last line of the output tells you that the Java HotSpot Server VM installed ok. And you have to use the "-server" option to invoke it.

The following notes were taken in 2004.

I have just downloaded and installed j2sdk1.4.0_02 on my machine, so the Java HotSpot Server VM should be available on my machine. To verify this, run the following command in a command window:

\local\j2sdk1.4.0_02\bin\java -server -version

Output

java version "1.4.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_02-b02)
Java HotSpot(TM) Server VM (build 1.4.0_02-b02, mixed mode)

The last line of the output tells you that the Java HotSpot Server VM installed ok. And you have to use the -server option to invoke it.

Last update: 2007.

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

 What Is HotSpot?

 Running Java HotSpot Client VM

Running Java HotSpot Server VM

 VM Memory Usages on Windows Systems

 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

 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
Running Java HotSpot Server VM