Performance Articles
3 articles about Performance. Explore Spring Boot implementation, design, and operations across related topics.
-
How to Speed Up Spring Boot Application Startup - Profiling, Lazy Initialization, CDS, and AOT in Practice
A practical guide to reducing Spring Boot application startup time. Learn how to identify bottlenecks with the Actuator startup endpoint and progressively apply lazy initialization, AutoConfiguration exclusion, CDS, and AOT mode.
-
How to Correctly Configure and Tune HikariCP Connection Pool in Spring Boot
Explains the default values and production-recommended values for HikariCP's main parameters (maximumPoolSize, connectionTimeout, maxLifetime, keepaliveTime), along with the official pool sizing formula and application.yml implementation examples. Also covers how to diagnose the causes of Connection is not available errors and how to detect connection leaks using leakDetectionThreshold.
-
Spring Boot Virtual Threads (Java 21): Setup, Performance, and Pitfalls
Enable virtual threads in Spring Boot 3.2+ with one setting. Covers performance benchmarks vs platform threads, ThreadLocal behavior changes, pinning issues, and @Async integration.