Apache Solr

Garbage Collection Pause Cascade

critical
Resource ContentionUpdated Mar 19, 2025

Long or frequent garbage collection pauses directly cause query timeouts and latency spikes, particularly when heap usage remains consistently high (>80%), creating a cascading effect on query performance.

How to detect:

Monitor GC frequency, duration, and pause times. Alert when GC pauses exceed query timeout thresholds (typically >500ms). Track heap usage trends - sustained usage above 80% indicates impending GC issues.

Recommended action:

Increase JVM heap size if resources allow. Tune GC settings (e.g., G1GC or ConcMarkSweepGC parameters). Review and optimize cache sizes. Consider horizontal scaling if single-node heap limits are reached.