Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

CDS has existed since Java 5 but became a priority for server applications only in recent years. Why did startup matter more over time, and what does that suggest about future platform investments?

For a long time Java servers were long-running processes on big machines, so a few seconds of startup were irrelevant and the platform optimised for JIT peak performance. Containers, autoscaling, rolling deployments and serverless turned startup and warmup into a direct cost and an availability concern, and OpenJDK responded step by step: AppCDS in OpenJDK in JDK 10, a default archive in JDK 12, dynamic archives in JDK 13, and the Leyden AOT cache in JDK 24 and 25, while GraalVM native image pushed the ecosystem toward build-time work. The lesson is that deployment models drive runtime priorities, so we should watch how our company deploys and invest in the pipeline that produces training runs and archives.

Why this question is asked

Questions about the history of a feature are really questions about judgement. Anyone can memorise that CDS arrived in Java 5; the interesting part is why it took about fifteen years to matter for servers and what that tells us about where to invest next. Interviewers ask this at the principal level to see whether we connect platform features to the economics of how software is deployed. In this answer, we will look at the world CDS was born into, see what changed, trace how OpenJDK responded, and draw the conclusions for a company's platform investments.

1Why Startup Did Not Matter for Servers

CDS first appeared in Sun's JDK 5 in 2004, aimed at desktop applications, where users stared at a splash screen while the JVM loaded classes. On servers the picture was different. A typical Java application server ran on a large, long-lived machine and was restarted perhaps once a week or once a month, during a maintenance window. Whether it took 30 seconds or two minutes to start hardly mattered compared with weeks of uptime.

What mattered on servers was peak performance: how fast the application ran after the JIT had compiled its hot code with profile information. HotSpot's design reflects this. It starts by interpreting, gathers profiles, and gradually compiles the hottest methods with aggressive, speculative optimisations. That gives excellent long-run throughput in exchange for slow startup and a warmup period, which was a perfectly sensible trade for that deployment model.

2What Changed: Deployment Models

Over the 2010s, the way server software was deployed changed fundamentally. Applications moved into containers and orchestrators such as Kubernetes, where pods are created and destroyed routinely. Autoscaling adds instances when load rises, so the time to start a new instance and get it warm is the time during which the existing instances are overloaded. Rolling deployments restart every instance of a service, perhaps several times a day, so slow startup stretches every release and keeps capacity reduced longer.

Serverless platforms made the cost explicit. A function that starts cold for each burst of traffic pays its startup time in user-visible latency and, often, in billed time. And with many small services instead of one large application, the platform's fixed startup costs are paid by hundreds of processes instead of one. Startup stopped being a one-off inconvenience and became a recurring cost and an availability concern.

How the deployment model shifted priorities
EraTypical deploymentWhat mattered
Mid 2000sfew large app servers, rare restartspeak throughput after warmup
Early 2010sVMs, scripted deployspeak throughput, some deploy speed
Late 2010scontainers, Kubernetes, autoscalingstartup, warmup, memory per instance
2020sserverless, scale to zero, many servicescold start, footprint, cost per start
As restarts became frequent, startup moved from irrelevant to a direct cost.

3How OpenJDK Responded

The response came in steps, each extending what could be stored ahead of time. Application Class Data Sharing had existed as a commercial feature in Oracle JDK 8, and JDK 10 brought AppCDS into OpenJDK for everyone, so application classes could be archived, not only JDK classes. JDK 12 shipped a default CDS archive with every JDK build, so every Java process benefited without any configuration. JDK 13 added dynamic archiving, so an application could create an archive at exit simply by adding one option, which made CDS practical for ordinary teams.

Project Leyden then broadened the goal from class data to startup and warmup work in general. JDK 24 introduced the AOT cache, which stores classes that are already loaded and linked. JDK 25 simplified creating it with a single command-line option and added method profiles from the training run, so the JIT can compile hot methods sooner. The direction is clear: move more and more work from every startup to a one-time training step at build time.

Step throughStartup features in OpenJDK, step by step
  1. JDK 5 (2004)CDS for core classes, aimed at desktop startup
  2. JDK 10AppCDS in OpenJDK: application classes too
  3. JDK 12default CDS archive shipped and used automatically
  4. JDK 13dynamic archives created at application exit
  5. JDK 19auto-created and refreshed dynamic archives
  6. JDK 24Leyden AOT cache: classes loaded and linked ahead of time
  7. JDK 25simpler AOT cache creation, method profiles from training

7 steps in order. Play them, or step through them one at a time.

Each step moves more startup work from run time to a training step.

4The Pressure From GraalVM Native Image

In parallel, GraalVM native image showed an extreme answer: compile the whole application ahead of time into a native executable that starts in milliseconds and uses little memory, at the cost of a closed world in which reflection and dynamic class loading must be declared at build time, and usually lower peak throughput than a warmed JIT. Frameworks responded. Spring Boot 3 added AOT processing that generates code at build time to replace reflection-heavy startup work, which helps native images and also speeds up startup on the regular JVM.

Native image did not replace the JVM for most services, but it changed expectations. It showed that much of what a framework does at startup can be done at build time, and that idea now runs through both the frameworks and OpenJDK's own Leyden work.

5What This Suggests for Future Investments

The main lesson is that deployment models drive runtime priorities. The JVM did not change its priorities because startup suddenly became a technical curiosity; it changed because the economics of deployment changed. So the first investment is awareness: knowing how our company deploys today and where it is heading. If we are moving toward aggressive autoscaling, scale-to-zero or serverless, startup and warmup will matter more each year. If we run a few large, stable services, they matter less, and peak throughput and memory remain the priorities.

The second lesson is that these features increasingly rely on training runs at build time. CDS archives, AOT caches and framework AOT processing all need a build pipeline that runs the application in a realistic but side-effect-free way, on the exact JDK build used in production, and stores the result in the image. That pipeline is a platform capability, not something each team should invent. Investing in it, with a standard training profile, a standard image layout and measurement of startup and warmup as tracked metrics, lets every service adopt each new JDK startup feature with little effort.

6Follow-up questions

Why did it take so long for AppCDS to reach OpenJDK?

Partly because it began as a commercial feature, and partly because demand from servers was low while long-running deployments dominated. Once containers made startup a widespread concern, the case for making it a standard, free feature became strong, and it was open-sourced in JDK 10.

Does the AOT cache make GraalVM native image unnecessary?

Not entirely. The AOT cache keeps the full dynamic JVM with a JIT and reduces startup and warmup substantially, while native image gives the fastest startup and smallest footprint at the cost of a closed world. They serve different points on the trade-off curve, and the choice depends on the deployment model.

How would you measure whether startup matters for your company?

Look at how often instances start: deployments per day times instances per service, autoscaling events, and cold starts in serverless functions. Multiply by startup and warmup time and by the cost of reduced capacity or slow responses during that time. That turns a vague concern into a number.

7Conclusion

In this answer, we saw that CDS was born for desktop startup in Java 5, while servers, which restarted rarely, cared about JIT peak performance. Containers, autoscaling, rolling deployments and serverless made startup and warmup a direct cost, and OpenJDK responded with AppCDS in OpenJDK in JDK 10, a default archive in JDK 12, dynamic archives in JDK 13 and the Leyden AOT cache in JDK 24 and 25, with GraalVM native image pushing the ecosystem toward build-time work. The lesson is to watch how the company deploys and invest in a shared pipeline for training runs and archives.

What to say in the interviewAbout 90 seconds aloud

Open with

CDS has been in the JVM since Java 5, but it was built for desktop applications, where startup was visible to users. On servers, the typical deployment was a few big, long-running JVMs restarted rarely, so a minute of startup did not matter, and the whole HotSpot design optimised for peak performance after the JIT warmed up.

Then, if they want more

That changed with containers, Kubernetes, autoscaling and rolling deployments. Instances start all the time, autoscaling is only as fast as a new instance becomes ready and warm, every release restarts every pod, and serverless makes cold starts both visible to users and billed. So startup and warmup became a direct cost and an availability concern.

OpenJDK responded in steps: AppCDS moved into OpenJDK in JDK 10, JDK 12 shipped a default archive, JDK 13 added dynamic archives created at exit, and Project Leyden brought the AOT cache in JDK 24, with simpler creation and method profiles in JDK 25.

GraalVM native image pushed the same direction by showing how much can be done at build time, and Spring's AOT processing followed. My takeaway is that deployment models drive runtime priorities.

So I would watch where our company's deployment model is going, and invest in a shared build pipeline that does side-effect-free training runs on the exact production JDK, stores archives in images, and tracks startup and warmup as metrics.

About this answer

Last updated
12 November 2026
Versions it names
Java 10, Java 12, Java 13, Java 24
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "CDS has existed since Java 5 but became a priority for server applications only in...": https://scrivio-interview-library.netlify.app/java/startup-and-footprint/46c58c231b/