The demo is based on spring-petclinic project.
Make sure the IBM Semeru Runtime is properly configured
Build the application sources
cd spring-petclinic/
./mvnw package -DskipTests
java -Xshareclasses:name=scc,cacheDir=. -Xscmx96m -XX:SharedCacheHardLimit=192m -Xquickstart -jar -Dserver.port=8080 target/*.jar
Note: When "-Xquickstart" mode is enabled all methods are dynamically AOT compiled (supposing that AOT compiler is active as well). This option is recommended when start-up time is an important performance metric
These command-line options are further detailed below:
java -Xshareclasses:printStats,name=scc,cacheDir=.
Make sure there is no other instance running
pkill -f 'petclinic'
Start a few instances with SCC
java -Xshareclasses:name=scc,cacheDir=. -Xscmx128m -XX:SharedCacheHardLimit=256m -Xquickstart -jar -Dserver.port=8080 target/*.jar 1>/dev/null & ./time-to-first-response.sh 8080
java -Xshareclasses:name=scc,cacheDir=. -Xscmx128m -XX:SharedCacheHardLimit=256m -Xquickstart -jar -Dserver.port=8081 target/*.jar 1>/dev/null & ./time-to-first-response.sh 8081