JVM warm-up
The first period of a Java program's life, while classes load and hot methods are still being compiled, when it runs slower than it will later.
In more detail
Because the JVM loads classes on first use and compiles hot methods only after watching them, a freshly started service answers its first requests more slowly. Measure performance after warm-up, not in the first seconds. Expensive static setup can also show up as a pause during an early request instead of at startup.
Related terms
- JIT compiler — A compiler inside a runtime that turns intermediate code into native machine code while the program runs.
- class loading — The JVM finding a class's bytecode on the class path, reading it and preparing it the first time the class is needed.
- static initializer — A block marked static inside a class that runs exactly once, the first time the class is actually used.
Taught in
- The Lifecycle Of A Java Program — Modern Java: Virtual Threads & High-Throughput Services