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

Taught in

References