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?
What is the difference between the JDK, the JRE and the JVM?`a` is the literal "code". Which of `"co" + "de"`, `fco + "de"` (with `final String fco = "co"`), `nco + "de"` (without `final`), `new StringBuilder("co").append("de").toString()` and `new String("code")` are `==` to `a`? What does `intern()` change, and what does it not?