~/talk

Fast JVM Startup with Checkpoint & Restore

Talkat JVM Language Summit 2023 · 2023-08-07..08-09· [java, devops-and-delivery]
links:none on file
slides:none on file

Claim: using CRIU plus an OpenJ9 extension called OpenJ9 Series Support checkpoints a warmed JVM and restores it in tens of milliseconds. Demonstration: toy app restores in ~69 ms; Liberty app drops from ~3.39 s cold start to ~0.17–0.30 s (≈10–15x speedup). Implementation uses self-dump hooks to patch time, entropy and OS resources, a Java hook API and optional not-checkpoint-safe annotation. Works but requires minor app support, conservative JIT settings (or single-restore mode), and Linux kernel capability support (≈v5.9).

AI-written summary · about

  1. 0:00Fast JVM startup with Checkpoint and Restore
  2. 0:42Overview
  3. 2:21Why does fast startup matter?
  4. 5:02Class metadata caching
  5. 7:15Static compilation
  6. 12:04Checkpoint Restore in Userspace (CRIU)
  7. 15:05CRIUSupport API
  8. 16:26Workflow
  9. 18:36How is checkpoint initiated?
  10. 24:54Demo...
  11. 25:58Restoring Application state
  12. 28:47Compensations
  13. 31:07CRIUSupport Hooking mechanism
  14. 32:50Singe thread mode
  15. 35:03Where to checkpoint?
  16. 36:26Portability
  17. 39:53Security
  18. 41:59Serviceability & Tuning
  19. 43:02Where does this work best?
  20. 43:47Future Work
~/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.