What is CDS?
A commercial feature with Oracle JVM since Java 8, CDS helps to reduce the start up time of a Java application and its memory footprint. This is especially notable when you are working with multiple JVMs.
On startup, JVM prepares the environment for execution. It includes bytecode loading, verification, linking, and initializing of the core classes and interfaces. The classes and interfaces are combed into the runtime state of the JVM so that they can be executed. It also includes method areas and constant pools.
These set of core classes and interfaces don't change unless you update your JVM. So, every time you start your JVM, it performs the same steps to get the environment up for execution. Imagine that you could dump the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access