After researching before and after startup times with Spring Boot 2.1
vs 2.2, the largest win for startup time, regardless of version, is to
not use PropertiesLauncher.
Here is basic startup time before and after with the 2.17.2 version of
Zipkin:
Before (using PropertiesLauncher)
Started ZipkinServer in 3.641 seconds (JVM running for 5.009)
After (running the main class)
Started ZipkinServer in 3.267 seconds (JVM running for 4.31)
Note: even before this change we extracted Zipkin's jar first, so the
entire gains here are only from not using PropertiesLauncher.
After researching before and after startup times with Spring Boot 2.1 vs 2.2, the largest win for startup time, regardless of version, is to not use
PropertiesLauncher
.Here is basic startup time before and after with the 2.17.2 version of Zipkin:
Before (using PropertiesLauncher)
After (running the main class)
Note: even before this change we extracted Zipkin's jar first, so the entire gains here are only from not using
PropertiesLauncher
.