# Client Node OOM

**URL:** <https://discuss.elastic.co/t/client-node-oom/59056>\
**Category:** Elasticsearch\
**Created:** [August 26, 2016, 4:04pm UTC](https://discuss.elastic.co/t/client-node-oom/59056 "2016-08-26T16:04:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anks](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@anks](https://discuss.elastic.co/u/anks)\
**Post date:** [August 26, 2016, 4:04pm UTC](https://discuss.elastic.co/t/client-node-oom/59056/1 "2016-08-26T16:04:11Z")

</div>

Hi All,

I am hitting my 6 node cluster using a client node. I am running few aggregation queries as well as search queries.

I am getting out of memory issue on client node only rest of the data and master working fine.

Are loading \_source for search queries can cause this problem. I am fetching 5000 documents for some search requests. Does these document get loaded in memory which cause high heap usage ?

Looking for suggestions.

Thanks

---

<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:** [August 27, 2016, 12:19am UTC](https://discuss.elastic.co/t/client-node-oom/59056/2 "2016-08-27T00:19:25Z")

</div>

There's very little to go on here.

What version are you on? How big is your heap? What is the actual error? How large are your documents? What does the search look like?

---

<div class="post-metadata">

**Author:** ![anks](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@anks](https://discuss.elastic.co/u/anks)\
**Post date:** [August 27, 2016, 5:11am UTC](https://discuss.elastic.co/t/client-node-oom/59056/3 "2016-08-27T05:11:24Z")

</div>

Thanks @warkolm

Here are the answers to you questions.

Version - 2.3.0  
Heap Allocated to Client is 8 GB  
Error - java.lang.OutOfMemoryError: Java heap space  
Document size ~ 5 KB  
Search - It is single range filter with sort on single field.

I really like here to validate that document from search query get loaded in memory on client node ? and can cause load on memory ??

Thanks.

---

<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:** [August 27, 2016, 7:13am UTC](https://discuss.elastic.co/t/client-node-oom/59056/4 "2016-08-27T07:13:34Z")

</div>

> [@anks](#):
>
> Error - java.lang.OutOfMemoryError: Java heap space

Provide the entire thing please.

---

<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:** [August 27, 2016, 7:13am UTC](https://discuss.elastic.co/t/client-node-oom/59056/5 "2016-08-27T07:13:48Z")

</div>

> [@anks](#):
>
> Search - It is single range filter with sort on single field.

What is the search.

---

<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, 10:24pm UTC](https://discuss.elastic.co/t/client-node-oom/59056/7 "2017-07-05T22:24:35Z")

</div>


