File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 61
61
-s "Started Application" \
62
62
-e exitcode \
63
63
jdk14-crac/bin/java \
64
- -Zcheckpoint: cr \
64
+ -XX:CRaCCheckpointTo= cr \
65
65
-XX:+UnlockDiagnosticVMOptions \
66
66
-XX:+CRTraceStartupTime \
67
67
-Djdk.crac.trace-startup-time=true \
@@ -75,12 +75,12 @@ jobs:
75
75
run : |
76
76
P=$(utils/start-bg.sh \
77
77
-s "restore-finish" \
78
- jdk14-crac/bin/java -Zrestore: cr)
78
+ jdk14-crac/bin/java -XX:CRaCRestoreFrom= cr)
79
79
curl -X POST -H "Content-Type: text/plain" -d "$(<example.xml)" localhost:8080/transform | grep "My Article"
80
80
utils/bench.sh -H "Content-type: text/plain" "http://localhost:8080/transform POST < example.xml"
81
81
kill $P
82
82
83
83
- name : Test C/RaC startup time
84
84
run :
85
- timeout 3 bash -c "jdk14-crac/lib/javatime ; jdk14-crac/bin/java -Zrestore: cr"
85
+ timeout 3 bash -c "jdk14-crac/lib/javatime ; jdk14-crac/bin/java -XX:CRaCRestoreFrom= cr"
86
86
| utils/sel.awk -v from=prestart -v to=restore-finish
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ Please refer to [README](https://github.com/org-crac/docs#users-flow) for detail
20
20
### Preparing the image
21
21
1 . Run the [ JDK] ( README.md#JDK ) in the checkpoint mode
22
22
```
23
- $JAVA_HOME/bin/java -Zcheckpoint: cr -jar target/spring-boot-0.0.1-SNAPSHOT.jar
23
+ $JAVA_HOME/bin/java -XX:CRaCCheckpointTo= cr -jar target/spring-boot-0.0.1-SNAPSHOT.jar
24
24
```
25
25
2 . Warm-up the instance
26
26
```
@@ -34,5 +34,5 @@ jcmd target/spring-boot-0.0.1-SNAPSHOT.jar JDK.checkpoint
34
34
### Restoring
35
35
36
36
```
37
- $JAVA_HOME/bin/java -Zrestore: cr
37
+ $JAVA_HOME/bin/java -XX:CRaCRestoreFrom= cr
38
38
```
You can’t perform that action at this time.
0 commit comments