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.
25 lines
1.0 KiB
Bash
Executable File
25 lines
1.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Regenerate every file in docs/output/. Budget ~20 minutes; the scan-tax demo rebuilds
|
|
# the project four times and the AOT demo builds a 118 MB cache.
|
|
set -uo pipefail
|
|
source "$(dirname "$0")/env.sh"
|
|
cd "$ROOT"
|
|
|
|
mvn -B -q -DskipTests package || exit 1
|
|
|
|
./scripts/demo-versions.sh > docs/output/00-versions.txt 2>&1
|
|
# 01-api-corrections.txt is javap and compiler output, kept by hand; see docs/02.
|
|
./scripts/demo-startup-tree.sh > docs/output/02-startup-tree.txt 2>&1
|
|
./scripts/demo-jfr.sh > docs/output/03-jfr.txt 2>&1
|
|
RUNS=3 ./scripts/demo-scan-tax.sh > docs/output/04-scan-tax.txt 2>&1
|
|
RUNS=4 ./scripts/demo-what-helps.sh > docs/output/05-what-helps.txt 2>&1
|
|
|
|
./scripts/gen-bulk.sh 5000 component > /dev/null
|
|
mvn -B -q -DskipTests package || exit 1
|
|
./scripts/demo-buffer-overflow.sh > docs/output/06-buffer-overflow.txt 2>&1
|
|
rm -rf src/main/java/com/ankurm/startup/bulk
|
|
mvn -B -q -DskipTests package
|
|
|
|
./scripts/stop.sh
|
|
echo "docs/output regenerated."
|