Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 617 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 617 Bytes

example-spring-boot

Building

mvn package

Running

Please refer to README for details.

Preparing the image

  1. Run the JDK in the checkpoint mode
$JAVA_HOME/bin/java -XX:CRaCCheckpointTo=cr -jar target/spring-boot-0.0.1-SNAPSHOT.jar
  1. Warm-up the instance
siege -c 1 -r 100000 -b -H "Content-type: text/plain" "http://localhost:8080/transform POST < example.xml"
  1. Request checkpoint
jcmd target/spring-boot-0.0.1-SNAPSHOT.jar JDK.checkpoint

Restoring

$JAVA_HOME/bin/java -XX:CRaCRestoreFrom=cr