Skip to main content

AOT Processing, GraalVM Native Images, CDS/Virtual Threads and Startup Performance

Learn AOT Processing, GraalVM Native Images, CDS/Virtual Threads and Startup Performance (Phase 19 · Advanced Spring Core (Advanced), Spring Core) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

AOT processing and native images • Spring 6 / Boot 3 AOT ( spring-boot:process-aot ) analyses the application at build time: generates bean-definition code (no classpath scanning or CGLIB at runtime), and runtime hints for reflection/proxies/resources. With GraalVM ( mvn -Pnative native:compile , or bootBuildImage with buildpacks) you get a native executable: milliseconds startup , lower memory, but longer builds, closed-world constraints (no dynamic classpath changes, profiles/conditions fixed at build time) and fewer libraries supported. JVM alternatives: CRaC (checkpoint/restore),...

More lessons in Phase 19 · Advanced Spring Core (Advanced)