What problem does it solve?
Performance tuning removes latency and throughput bottlenecks in Java/Spring Boot systems by guiding you from measurement to targeted JVM, database, caching, and async/load improvements.
Core Features & Use Cases
- Performance investigation workflow: measure first, identify CPU/memory/I/O bottlenecks, apply one change at a time, and validate with realistic load testing.
- Database optimization: enable slow query logging, detect N+1 patterns with Hibernate statistics, analyze index usage, and use EXPLAIN/ANALYZE to confirm fixes.
- Runtime tuning & scalability: tune JVM (e.g., G1GC flags), size connection pools, optimize async processing with virtual threads, and improve caching behavior (e.g., Spring Cache with Caffeine).
- Operational monitoring: use Actuator metrics to verify improvements via endpoint latency, connection counts, and cache hit rates.
Quick Start
Use the performance-tuning skill to investigate a slow endpoint by enabling slow query logging, checking for N+1 behavior, tuning the connection pool, and validating the result with Actuator metrics and a load test.