What the CRaC - Superfast JVM startup
summary
Shows a practical path to millisecond JVM startup by using Linux CRIU plus the OpenJDK CRaC integration and a tiny checkpoint/restore API (resource.beforeCheckpoint/afterRestore). Demonstrates a cache-warming demo that takes ~27 s on first run, reaches steady performance after ~9 iterations, then saves a checkpoint and restores in about 17 ms; Spring Boot and other demos restore in the ~<50 ms range. Requires Linux and careful resource reinitialization (sockets, DB connections) and it works as shown.
AI-written summary · about
chapters (13)
- 0:00Introduction to CRaC
- 1:07How JVM works simplified
- 8:52Problem with JVM warm-up
- 9:35Class Data Sharing limits
- 11:17AOT compilation drawbacks
- 14:06JIT optimizations explained
- 16:32Checkpoint restore basics
- 19:20CRaC project introduction
- 22:06CRaC API and usage
- 25:18Live demo with CRaC
- 29:49CRaC performance results
- 31:36CRaC benefits summary
- 33:22Q&A session
