Skip to content

CRaC/example-spring-boot

Repository files navigation

example-spring-boot

Building

  1. Create once a Personal Access Token (PAK) with packages scope.
  2. Provide the PAK in the environment
export GITHUB_ACTOR=YOUR_USERNAME export GITHUB_TOKEN=YOUR_PAK 
  1. Use maven to build
mvn -s settings.xml 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 http://localhost:8080 
  1. Request checkpoint
jcmd target/spring-boot-0.0.1-SNAPSHOT.jar JDK.checkpoint 

Restoring

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages