This is an example of Micronaut app generated by https://micronaut.io/launch with crac
feature included.
gradle assemble
Please refer to README for details.
- Run the JDK in the checkpoint mode
$JAVA_HOME/bin/java -XX:CRaCCheckpointTo=cr -jar build/libs/demo-0.1-all.jar
- Warm-up the instance
siege -c 1 -r 100000 -b http://localhost:8080/hello/test
- Request checkpoint
jcmd build/libs/demo-0.1-all.jar JDK.checkpoint
$JAVA_HOME/bin/java -XX:CRaCRestoreFrom=cr