This is an example of Spring Boot Getting Started modified to work on OpenJDK CRaC.
Changes: https://github.com/CRaC/example-spring-boot/compare/base..crac
Use maven to build
mvn package
Please refer to README for details.
- Run the JDK in the checkpoint mode
$JAVA_HOME/bin/java -XX:CRaCCheckpointTo=cr -jar target/spring-boot-0.0.1-SNAPSHOT.jar
- Warm-up the instance
siege -c 1 -r 100000 -b http://localhost:8080
- Request checkpoint
jcmd target/spring-boot-0.0.1-SNAPSHOT.jar JDK.checkpoint
$JAVA_HOME/bin/java -XX:CRaCRestoreFrom=cr