Slide 13
Slide 13 text
Copyright © Broadleaf Co., Ltd. All Rights Reserved. 12
テストが遅い
起動時間:11分→2分
• Java起動時オプションのチューニング
• -XX:TieredStopAtLevel=1
• -XX:+TieredCompilation
階層型コンパイル。2分ちょっと短縮(11分→9分)。
• Maven Surefire PluginのreuseForksをtrueに変更。9分→2分!
※元々は、spring-bootのissue#10366の問題を回避するために
reuseForksをfalseにしていた。
本当は、この前段階でApplication Class Data Sharingしたかったが断念。
Classpath mismatch
The classpath used with -Xshare:dump must be the same as, or be a prefix of, the classpath used with -Xshare:on. Otherwise,
the JVM will print an error message about the mismatched classpath and refuse to start. To analyze the mismatch, you can
add -Xlog:class+path=info to the application's command-line, and the JVM will print out detailed diagnostic information
about what classpath is expected, and what classpath is actually used.
引用:https://openjdk.java.net/jeps/310