Loading lesson…
Level 1 · Apprentice0 XP
Profile before you optimise: JFR, JMH and reading a flame graph.
Step 1 / 5
ProblemA developer spends two days rewriting a loop with arrays for speed. A profiler later shows 80% of the time was a single unindexed database query.
← → step
Before this: The JVM: memory and garbage collection
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Record 60 seconds of JFR on an app under load, open it in JDK Mission Control or convert it to a flame graph, name the widest frame, fix it, and record again to compare.