# ElasticsearchLRUQueryCache use much memory cause node OutOfMemoryError

**URL:** <https://discuss.elastic.co/t/elasticsearchlruquerycache-use-much-memory-cause-node-outofmemoryerror/195966>\
**Category:** Elasticsearch\
**Created:** [August 20, 2019, 3:28pm UTC](https://discuss.elastic.co/t/elasticsearchlruquerycache-use-much-memory-cause-node-outofmemoryerror/195966 "2019-08-20T15:28:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LoadingZhang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/loadingzhang/32/22391_2.png) [@LoadingZhang](https://discuss.elastic.co/u/LoadingZhang)\
**Post date:** [August 20, 2019, 3:28pm UTC](https://discuss.elastic.co/t/elasticsearchlruquerycache-use-much-memory-cause-node-outofmemoryerror/195966/1 "2019-08-20T15:28:12Z")

</div>

**Elasticsearch version** : 7.2.0  
**JVM version** : Build-in JDK12  
**OS version** : CentOS 7.3

I have a index with join field, heap usage will raise to 90%+ when doing has\_child query.  
MAT report shows `org.elasticsearch.indices.IndicesQueryCache$ElasticsearchLRUQueryCache` consume 80%+ heap size.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/a/5adc4184e52c8e04c2f0a328b748805138e412ca.png)  
what is the reason that ElasticsearchLRUQueryCache would larger then 10% of heap size and cause oom problem?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 17, 2019, 3:28pm UTC](https://discuss.elastic.co/t/elasticsearchlruquerycache-use-much-memory-cause-node-outofmemoryerror/195966/2 "2019-09-17T15:28:15Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
