Video in progress
What is HotSpot, and are there other JVM implementations?
HotSpot is the main JVM in OpenJDK, and almost all distributions like Oracle JDK, Temurin and Corretto are based on it. There are other JVMs too, such as Eclipse OpenJ9, GraalVM and Azul Prime.
📖 Answer
The JVM is a specification. Different companies can write their own, as long as it executes bytecode correctly.
The name HotSpot comes from its main idea: finding the "hot spots" of the code and optimizing them with the JIT.
The alternatives:
- OpenJ9 (Eclipse, originally from IBM): known for low memory use and fast startup, with a different GC and different flags;
- GraalVM: the Graal JIT compiler, written in Java, on top of HotSpot; with
native-imageyou can compile an application ahead of time into a native binary; - Azul Prime: commercial, with its own GC (C4) and JIT.
Don't confuse a distribution with a JVM. Temurin, Corretto, Zulu, Liberica, Microsoft Build of OpenJDK are all OpenJDK + HotSpot; the difference is in support and licensing.
The practical effect: the -XX: flags and GC names are for HotSpot. If you move to OpenJ9, most of them are named differently.
Sign up to mark studied questions and save your progress.