performance-tuning

Diagnose Java/Spring Boot performance bottlenecks using metrics and load testing.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/dprice-dev/claude-java-skills --skill performance-tuning-dprice-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance-tuning
Source: https://github.com/dprice-dev/claude-java-skills/tree/main/.claude/skills/performance-tuning
Command: npx skills add https://github.com/dprice-dev/claude-java-skills --skill performance-tuning-dprice-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

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.

Frequently Asked Questions about performance-tuning

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find slow REST endpoint bottlenecks in a Spring Boot application?

Resolve slow Spring Boot endpoints by enabling Hibernate slow query logging and statistics to detect N+1 patterns, analyzing index usage with EXPLAIN, tuning connection pools, and validating results with Actuator metrics.

How do I detect and fix N+1 query problems with Hibernate?

Detect and fix Hibernate N+1 query problems by enabling Hibernate statistics to identify excessive database queries, analyzing index usage, and using EXPLAIN/ANALYZE to confirm that your query optimizations resolve the bottleneck.

What are the best JVM garbage collection flags for tuning Spring Boot performance?

Tune JVM performance using G1GC flags, size connection pools appropriately, optimize async processing with virtual threads, and verify garbage collection improvements through Actuator metrics and load testing.

How do I configure Spring Cache with Caffeine to improve cache hit rates?

Improve cache hit rates by configuring Spring Cache with Caffeine to resolve cache inefficiencies, sizing connection pools correctly, and validating the updated caching behavior through Actuator metrics monitoring.

Does this performance tuning workflow support optimizing async workloads with virtual threads?

Yes, this performance tuning workflow supports optimizing I/O-bound async workloads with virtual thread optimization, resolving connection pool misconfiguration, and validating improvements through load testing and Actuator metrics.