Platformhard3-5 years

Why is a Java service slower in its first minute after a deploy, and what do you do about it?

The JVM interprets bytecode first and compiles hot methods to native code as they prove hot — tiered: interpreter, C1, then C2 with profile-guided inlining. Until that happens, requests run on interpreted or lightly optimised code. Mitigate with a warm-up phase before readiness, or AOT/CDS.

The lesson behind it →
More on Platform