~/talk

Four Approaches to Reducing Java Startup Time

Talkat Confitura 2025 · 2025-09-19..09-20· [java]
slides:none on file

Four practical fixes with tradeoffs: Application Class Data Sharing + Spring AOT is trivial to add (pom/docker change) and cuts a 6.5s startup by about 3s; Project Leyden (AOT cache in Java 24/25) drops the same example to ~2.83s by preserving more link/profile data; GraalVM Native Image produces a standalone binary that starts under 1.5s but needs heavy CI resources (minutes, ~16GB) and lots of tuning; Coordinated Restore at Checkpoint (CRaC) resumes memory snapshots to ~0.8s but requires privileged caps, large snapshots and per-connection restore code (MongoDB proxy example).

AI-written summary · about

  1. 0:00Introduction
  2. 3:10Java startup challenges
  3. 9:14Four approaches to reduce startup time
  4. 10:22Defender approach: Application Class Data Sharing
  5. 11:46Demo: ABCDS with Spring Boot
  6. 17:10Sage approach: Project Leyden
  7. 18:58Project Leyden benefits and limits
  8. 21:51Explorer approach: GraalVM Native Image
  9. 25:28Native Image setup and challenges
  10. 34:49Native Image startup improvements
  11. 35:31Rebel approach: CRaC checkpoint/restore
  12. 36:14CRaC implementation and security
  13. 40:11CRaC demo and MongoDB
  14. 44:31CRaC limitations and trade-offs
  15. 45:13Recap of approaches
  16. 46:40Q&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.