Spring Boot startup time: bean-by-bean diagnosis, and one directory per post
Adds spring-boot-startup-time/, the companion project for BLOG-618: a runnable Spring Boot 4.1.1 application on JDK 25 that installs BufferingApplicationStartup and FlightRecorderApplicationStartup behind a system property, and a /diag/startup endpoint that computes step self time -- the number /actuator/startup does not give you and the one that names the actual culprits. Captured under docs/output/: the step tree sorted both ways, the same startup as JFR events, a +5000-class experiment putting 0.11 ms per scanned class on the classpath scan tax, the silent truncation a 2048-step buffer performs, and JDK 25 AOT cache timings (6.93 s to 4.82 s). Post body and metadata live in post/. Moves the existing Actuator project into actuator-in-production/ so the repository holds one directory per article; the root README is now an index.
This commit is contained in:
23
actuator-in-production/docs/output/00-versions.txt
Normal file
23
actuator-in-production/docs/output/00-versions.txt
Normal file
@@ -0,0 +1,23 @@
|
||||
$ java -version
|
||||
openjdk version "25.0.4.1" 2026-08-18 LTS
|
||||
OpenJDK Runtime Environment Temurin-25.0.4.1+1 (build 25.0.4.1+1-LTS)
|
||||
OpenJDK 64-Bit Server VM Temurin-25.0.4.1+1 (build 25.0.4.1+1-LTS, mixed mode, sharing)
|
||||
|
||||
$ mvn -v | head -3
|
||||
Apache Maven 3.9.11 (3e54c93a704957b63ee3494413a2b544fd3d825b)
|
||||
Maven home: /tmp/tools/apache-maven-3.9.11
|
||||
Java version: 25.0.4.1, vendor: Eclipse Adoptium, runtime: /tmp/tools/jdk-25.0.4.1+1
|
||||
|
||||
$ mvn dependency:list -- the resolved versions behind spring-boot-starter-parent 4.1.1
|
||||
com.h2database:h2 2.4.240
|
||||
io.micrometer:micrometer-core 1.17.1
|
||||
io.micrometer:micrometer-registry-prometheus 1.17.1
|
||||
org.apache.kafka:kafka-clients 4.2.1
|
||||
org.springframework.boot:spring-boot 4.1.1
|
||||
org.springframework.boot:spring-boot-actuator 4.1.1
|
||||
org.springframework.boot:spring-boot-health 4.1.1
|
||||
org.springframework.boot:spring-boot-restclient 4.1.1
|
||||
org.springframework.security:spring-security-core 7.1.1
|
||||
org.springframework.security:spring-security-web 7.1.1
|
||||
org.springframework:spring-core 7.0.9
|
||||
org.springframework:spring-web 7.0.9
|
||||
Reference in New Issue
Block a user