Spring Performance

Clearly this is a huge topic, but it is well worth looking at FlightRecorderApplicationStartup (Spring Framework 5.3.3 API) which can help you get some metrics about what is going on when your application starts. You can set this for Spring Boot via SpringApplication (Spring Boot 2.4.2 API). There is a buffering version that you can access via an actuator.