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 2013.

After installing JDK 7u45, 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.7.0_45\bin\java -server -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) Server VM (build 24.45-b08, 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 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
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: 2014.

Table of Contents

 About This Book

 Downloading and Installing JDK 1.8.0 on Windows

 Downloading and Installing JDK 1.7.0 on Windows

 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 28.2.7 by Oracle Corporation

 JVM Runtime Data Areas

 Memory Management and Garbage Collectors

 Garbage Collection Tests

 JVM Stack, Frame and Stack Overflow

 Thread Testing Program and Result

 CPU Impact of Multi-Thread Applications

 I/O Impact of Multi-Thread Applications

 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

 Outdated Tutorials

 References

 PDF Printing Version