java-performance
JVM performance tuning - GC optimization, profiling, memory analysis, benchmarking
By pluginagentmarketplace · 465 installs
npx skills add pluginagentmarketplace/custom-plugin-java --skill java-performance
Source repository · Upstream listing
Java Performance Skill
Optimize JVM performance through profiling, GC tuning, and memory analysis.
Overview
This skill covers JVM performance optimization including garbage collection tuning, memory analysis, CPU profiling, and benchmarking with JMH.
When to Use This Skill
Use when you need to:
Tune GC for low latency or throughput
Profile CPU hotspots
Analyze memory leaks
Benchmark code performance
Optimize container settings
Quick Reference
GC Presets
Profiling Commands
JMH Benchmark
GC Comparison
GC Latency Throughput Heap Size
G1 Medium High 4 32GB
ZGC Very Low Medium 8GB 16TB
Shenandoah Very Low Medium 8GB+
Parallel High Very High Any
Troubleshooting
Problem Cause Solution
GC thrashing Heap too small Increase heap
High latency GC pauses Switch to ZGC
Memory leak Object retention Heap dump + MAT
CPU spikes Hot loops Profile + optimize
Usage