I'm trying to figure out ways to improve the restart time of my Spring Boot application when using spring-boot-devtools and see that there's consistently a ~5 second delay between these logs lines:
2022-07-03 14:35:28.602 DEBUG 82357 --- [ Thread-165] o.s.boot.devtools.restart.Restarter : Starting application ...
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.7.0)
2022-07-03 14:35:33.697 INFO 82357 --- [ restartedMain] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://localhost:8888
I've set the root log level to TRACE, but still see nothing for those 5 seconds. What's happening in that time and is there anything that can be done to speed it up?