Technologies/Elasticsearch/elasticsearch.node.script.cache_evictions
ElasticsearchElasticsearchMetric

elasticsearch.node.script.cache_evictions

Script cache evictions
Dimensions:None
Available on:OpenTelemetryOpenTelemetry (1)

Summary

Measures the number of evictions from the script compilation cache, indicating pressure on compiled script storage. Elasticsearch caches compiled Painless scripts to avoid repeated compilation overhead. High eviction rates suggest excessive script diversity or inadequate cache sizing, leading to repeated compilations that consume CPU and increase query latency, particularly for scripted queries and aggregations.

Interface Metrics (1)
OpenTelemetryOpenTelemetry
Total number of times the script cache has evicted old data.
Dimensions:None
Related Insights (2)
Script Compilation Cache Pressurewarning

Excessive script compilation from unique painless scripts can exhaust the compilation cache, trigger rate limiting, and impact query performance.

Script compilation limit triggered metric available for monitoringinfo