# Query execution consumes more memory has to be recjected automatically ,Is there any settings in elasticsearch

**URL:** <https://discuss.elastic.co/t/query-execution-consumes-more-memory-has-to-be-recjected-automatically-is-there-any-settings-in-elasticsearch/39059>\
**Category:** Elasticsearch\
**Created:** [January 13, 2016, 6:14am UTC](https://discuss.elastic.co/t/query-execution-consumes-more-memory-has-to-be-recjected-automatically-is-there-any-settings-in-elasticsearch/39059 "2016-01-13T06:14:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![justnj](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@justnj](https://discuss.elastic.co/u/justnj)\
**Post date:** [January 13, 2016, 6:14am UTC](https://discuss.elastic.co/t/query-execution-consumes-more-memory-has-to-be-recjected-automatically-is-there-any-settings-in-elasticsearch/39059/1 "2016-01-13T06:14:24Z")

</div>

Query execution consumes more memory has to be recjected automatically ,Is there any settings in elasticsearch which helps to execute the query else auery execution has to be failed

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 14, 2016, 7:16am UTC](https://discuss.elastic.co/t/query-execution-consumes-more-memory-has-to-be-recjected-automatically-is-there-any-settings-in-elasticsearch/39059/2 "2016-01-14T07:16:53Z")

</div>

You mean you want to run the query anyway?

---

<div class="post-metadata">

**Author:** ![justnj](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@justnj](https://discuss.elastic.co/u/justnj)\
**Post date:** [January 14, 2016, 7:31am UTC](https://discuss.elastic.co/t/query-execution-consumes-more-memory-has-to-be-recjected-automatically-is-there-any-settings-in-elasticsearch/39059/3 "2016-01-14T07:31:16Z")

</div>

Hi

detect the memory req for the query , with in the limit,query can be  
executed else we can get a  
intimation saying that memory is too low for the query to be executed

Please confirm is there any setting is there

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 14, 2016, 7:31am UTC](https://discuss.elastic.co/t/query-execution-consumes-more-memory-has-to-be-recjected-automatically-is-there-any-settings-in-elasticsearch/39059/4 "2016-01-14T07:31:45Z")

</div>

It partially does this with the fielddata circuit breaker.

---

<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:** [July 5, 2017, 11:24pm UTC](https://discuss.elastic.co/t/query-execution-consumes-more-memory-has-to-be-recjected-automatically-is-there-any-settings-in-elasticsearch/39059/5 "2017-07-05T23:24:40Z")

</div>


