~/talk

Under the Hood of a JVM Application - Java Flight Recorder / Java Mission Control

TalkinFrenchat Devoxx France 2024 · 2024-04-17..04-19· [java, observability]
slides:none on file

Demonstrates using Java Flight Recorder (JFR) and Java Mission Control to diagnose JVM-level bottlenecks in a git-hash demo that reads ~650,000 files (~20 GB) with virtual threads. Shows how to start and inspect JFR recordings via JVM args, jcmd or the programmatic API (and mentions JFR event streaming), discovers a synchronized lock, a tiny 512‑byte read buffer, and a Files API exception hotspot, and reports incremental fixes that raise throughput from 36k → 54k → 110k → 177k files/s (5.6 GB/s) with measured runtime overhead around 1% (3% with profiling).

AI-written summary · about

  1. 0:00Introduction
  2. 1:44Observability limits of classic tools
  3. 2:46Java Flight Recorder and Mission Control
  4. 4:53Start a JFR recording
  5. 8:23Demo app overview
  6. 11:33First run and initial analysis
  7. 13:01Open JFR file
  8. 14:04Lock contention analysis
  9. 15:53Optimize after lock fix
  10. 16:35Second run and new findings
  11. 17:17File read operations analysis
  12. 18:44Optimize buffer size
  13. 20:30Third run and performance gains
  14. 21:12Exception analysis
  15. 22:18Fix JDK performance bug
  16. 24:23Fourth run with JDK patch
  17. 25:07Final observations and optimizations
  18. 26:11Performance gains and best practices
  19. 27:33When to use JFR and Mission Control
  20. 32:31Conclusion and recommendations
  21. 36:43Resources for further reading
  22. 38:14Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.