JVM Tutorials - Herong's Tutorial Examples - v5.13, by Herong Yang
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'.
After installing JDK 17, the Java HotSpot Server VM should be available on my machine. To verify this, I used the following command to try it:
herong> \progra~1\java\jdk-17.0.1\bin\java -version -server java version "17.0.1" 2021-10-19 LTS Java(TM) SE Runtime Environment (build 17.0.1+12-LTS-39) Java HotSpot(TM) 64-Bit Server VM (build 17.0.1+12-LTS-39, mixed mode, sharing)
The last line of the output tells me that the Java HotSpot Server VM is available by running the "java" command with the "-server" option.
Examples of running older versions of Java HotSpot Client VM:
herong> \progra~1\java\jdk-10.0.1\bin\java -server -version java version "10.0.1" 2018-04-17 Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10) Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode) herong> \progra~1\java\jdk1.8.0_45\bin\java -server -version java version "1.8.0_45" Java(TM) SE Runtime Environment (build 1.8.0_45-b15) Java HotSpot(TM) Server VM (build 25.45-b02, mixed mode) herong> \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) herong> \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) herong> \progra~1\java\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)
Table of Contents
JVM (Java Virtual Machine) Specification
►Java HotSpot VM - JVM by Oracle/Sun
Download and Install JDK on macOS
Download and Install JDK on Windows
Running Java HotSpot Client VM
►Running Java HotSpot Server VM
HotSpot Memory Usages on Windows Systems
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