Can JVM caches speed up Spring Boot on Kubernetes? A JDK 21 and JDK 25 study
A study of one Spring Boot workload found that mnemo-warmup reduced the application's reported startup time with both JDK 21 AppCDS and the JDK 25 AOT cache. With a 1 CPU and 1 GiB application limit, the median fell from 3.14 to 1.90 seconds on JDK 21 and from 3.23 to 1.47 seconds on JDK 25. In both cases, the median Kubernetes pod start-to-Ready remained 5 seconds.
That distinction matters. A JVM can start the application faster while container setup, archive fetching, readiness probes, and timestamp resolution leave the observed pod readiness time unchanged. Measure both before deciding whether a startup cache is useful for your service.
This article describes a benchmark of mnemo-warmup , an open-source tool for training and distributing Java startup caches in Kubernetes. It is based on the study report and raw results .…