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.
PreviousExplain the access modifiers, and why package-private is a design tool.Next How do you read a stack trace with 90 framework frames in it?