Apache Solr

Cache Configuration Mismatch Causing Memory Pressure

warning
Resource ContentionUpdated May 9, 2025

Oversized or undersized caches (filterCache, queryResultCache, documentCache) waste memory or reduce hit rates, leading to OOM errors or degraded query performance. Low cache hit ratios indicate wasted memory allocation.

How to detect:

Monitor cache hit ratios and eviction rates. Low hit ratios (<50%) with high eviction counts indicate cache thrashing. Compare cache memory allocation against actual usage patterns.

Recommended action:

Analyze cache hit ratios via Solr Admin dashboard. If hit ratios are low, reduce cache sizes to free memory. If evictions are high with good hit ratios, increase cache sizes. Adjust solrconfig.xml cache settings and monitor impact.