Skip to content

CRaC/example-spring-boot

Repository files navigation

example-spring-boot

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

Building

Use maven to build

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 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