Add crac module: Spring Boot 4.2 started by CRaC checkpoint/restore vs JDK AOT cache vs native image

One service, seven start-up configurations measured over ten interleaved rounds on Temurin 25, Zulu 25 CRaC and Oracle GraalVM 25;
the open-file checkpoint failure and its fix, stale environment values, secrets in the checkpoint, warp and CRIU engines, cold page cache.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b5uEyg58znuchZ8C8i
This commit is contained in:
asmhatre
2026-11-29 13:51:08 +05:30
co-authored by Claude Sonnet 5.5
parent de2660e998
commit c0062ea398
33 changed files with 882 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
== 1. A file opened in a constructor and never closed (profile 'leaky'), checkpoint at start-up
java exit code: 1
WARN 11231 --- [crac-demo] [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to take CRaC checkpoint on refresh
ERROR 11231 --- [crac-demo] [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.context.ApplicationContextException: Failed to take CRaC checkpoint on refresh
Caused by: org.crac.CheckpointException
Suppressed: jdk.internal.crac.mirror.impl.CheckpointOpenFileException: <work>/audit.log
checkpoint directory exists: no
== 2. The same mistake, checkpoint requested later with jcmd JDK.checkpoint
11275:
An exception during a checkpoint operation:
jdk.internal.crac.mirror.CheckpointException
Suppressed: jdk.internal.crac.mirror.impl.CheckpointOpenFileException: <work>/audit.log
at java.base/jdk.internal.crac.JDKFileResource.lambda$beforeCheckpoint$0(JDKFileResource.java:134)
at java.base/jdk.internal.crac.mirror.Core.checkpointRestore1(Core.java:195)
at java.base/jdk.internal.crac.mirror.Core.checkpointRestore(Core.java:291)
at java.base/jdk.internal.crac.mirror.Core.checkpointRestoreInternal(Core.java:327)
application still running and answering: pong