# Out of memory in Elasticsearch

**URL:** <https://discuss.elastic.co/t/out-of-memory-in-elasticsearch/209588>\
**Category:** Elasticsearch\
**Created:** [November 26, 2019, 11:40pm UTC](https://discuss.elastic.co/t/out-of-memory-in-elasticsearch/209588 "2019-11-26T23:40:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kgpersonal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kgpersonal/32/58379_2.png) [@kgpersonal](https://discuss.elastic.co/u/kgpersonal)\
**Post date:** [November 26, 2019, 11:40pm UTC](https://discuss.elastic.co/t/out-of-memory-in-elasticsearch/209588/1 "2019-11-26T23:40:38Z")

</div>

Hi Team,  
We have seen out of memory **messages** in one of our cluster logs with  
"java.lang.OutOfMemoryError: Java heap space"  
I am trying to understand on  
What are the different kinds of OutOfMemory **messages** occur in the logs?  
Is it always printed in the logs or is there a file created for OutOfMemory issues?  
Other than the above message is there any other pattern printed in the logs?

---

<div class="post-metadata">

**Author:** ![kgpersonal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kgpersonal/32/58379_2.png) [@kgpersonal](https://discuss.elastic.co/u/kgpersonal)\
**Post date:** [November 29, 2019, 8:26pm UTC](https://discuss.elastic.co/t/out-of-memory-in-elasticsearch/209588/2 "2019-11-29T20:26:03Z")

</div>

I want to test my ES cluster with OutOfMemory exceptions. I would like to explore the options to obtain the same.  
What settings would help me create the exceptions?

---

<div class="post-metadata">

**Author:** ![kgpersonal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kgpersonal/32/58379_2.png) [@kgpersonal](https://discuss.elastic.co/u/kgpersonal)\
**Post date:** [December 1, 2019, 8:36pm UTC](https://discuss.elastic.co/t/out-of-memory-in-elasticsearch/209588/3 "2019-12-01T20:36:07Z")

</div>

Can someone please help me here. Thanks

---

<div class="post-metadata">

**Author:** ![kgpersonal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kgpersonal/32/58379_2.png) [@kgpersonal](https://discuss.elastic.co/u/kgpersonal)\
**Post date:** [December 3, 2019, 2:41am UTC](https://discuss.elastic.co/t/out-of-memory-in-elasticsearch/209588/4 "2019-12-03T02:41:56Z")

</div>

@warkolm:  
Since [this](https://discuss.elastic.co/t/what-are-the-different-kind-of-outofmemory-in-elasticsearch/209590/2) was closed. I would like to know different kind of ways to get the Out Of Memory.

---

<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:** [December 31, 2019, 2:44am UTC](https://discuss.elastic.co/t/out-of-memory-in-elasticsearch/209588/5 "2019-12-31T02:44:14Z")

</div>

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