File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -58,11 +58,12 @@ jobs:
5858 env :
5959 GITHUB_TOKEN : ${{ secrets.PACKAGES }}
6060
61- - run : |
61+ - name : Prepare warm checkpoint
62+ run : |
6263 P=$(utils/start-bg.sh \
6364 -s "Started Application" \
6465 -e exitcode \
65- $JDK /bin/java \
66+ jdk /bin/java \
6667 -Zcheckpoint:cr \
6768 -XX:+UnlockDiagnosticVMOptions \
6869 -XX:+CRTraceStartupTime \
@@ -74,22 +75,16 @@ jobs:
7475 jcmd $P JDK.checkpoint
7576 [ 137 = $(tail -f exitcode | head -n 1) ]
7677
77- # - run:
78- # timeout 30
79- # jdk/bin/java
80- # -Zcheckpoint:cr
81- # -XX:+UnlockDiagnosticVMOptions
82- # -XX:+CRTraceStartupTime
83- # -Djdk.crac.trace-startup-time=true
84- # -jar target/spring-boot-0.0.1-SNAPSHOT.jar
85- # || [ $? = 137 ]
86- - run : |
78+ - name : Test on C/RaC
79+ run : |
8780 P=$(utils/start-bg.sh \
8881 -s "restore-finish" \
8982 jdk/bin/java -Zrestore:cr)
9083 curl localhost:8080 | grep "Greetings from Spring Boot!"
9184 utils/bench.sh http://localhost:8080
9285 kill $P
93- - run :
86+
87+ - name : Test C/RaC startup time
88+ run :
9489 timeout 3 bash -c "jdk/lib/javatime ; jdk/bin/java -Zrestore:cr"
9590 | utils/sel.awk -v from=prestart -v to=restore-finish
You can’t perform that action at this time.
0 commit comments