Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.44 KB

README.md

File metadata and controls

53 lines (37 loc) · 1.44 KB

example-micronaut

This is an example of Micronaut app generated by https://micronaut.io/launch with crac feature included.

Building

gradle assemble

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 build/libs/demo-0.1-all.jar
  1. Warm-up the instance
siege -c 1 -r 100000 -b http://localhost:8080/hello/test
  1. Request checkpoint
jcmd build/libs/demo-0.1-all.jar JDK.checkpoint

Restoring

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

Micronaut 3.8.7 Documentation


Feature http-client documentation

Feature crac documentation