# Outofmemory exception in elasticsearch

**URL:** <https://discuss.elastic.co/t/outofmemory-exception-in-elasticsearch/224663>\
**Category:** Elasticsearch\
**Created:** [March 23, 2020, 11:49am UTC](https://discuss.elastic.co/t/outofmemory-exception-in-elasticsearch/224663 "2020-03-23T11:49:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![surajnayak88foru](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@surajnayak88foru](https://discuss.elastic.co/u/surajnayak88foru)\
**Post date:** [March 23, 2020, 11:49am UTC](https://discuss.elastic.co/t/outofmemory-exception-in-elasticsearch/224663/1 "2020-03-23T11:49:37Z")

</div>

Hi,

i am running elasticsearch as a part of application arcitecture, we have elasticsearch running in 3 identical machine, sometimes we see outofmemory exception and all it gets terminated in all the 3 machines.

below is the exception:  
[o.e.b.ElasticsearchUncaughtExceptionHandler] [data-node-1] fatal error in thread [elasticsearch[data-node-1][warmer][T[#2](https://www.linkedin.com/feed/hashtag/?keywords=%232)]], exiting java.lang.OutOfMemoryError: Java heap space

can someone please help here

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 23, 2020, 12:02pm UTC](https://discuss.elastic.co/t/outofmemory-exception-in-elasticsearch/224663/2 "2020-03-23T12:02:28Z")

</div>

Welcome !

What is the output of:

```auto
GET /
GET /_cat/nodes?v
GET /_cat/health?v
GET /_cat/indices?v

```

Also what are the logs of your elasticsearch server?

If some outputs are too big, please share them on [gist.github.com](http://gist.github.com) and link them here.

---

<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:** [April 20, 2020, 12:02pm UTC](https://discuss.elastic.co/t/outofmemory-exception-in-elasticsearch/224663/3 "2020-04-20T12:02:28Z")

</div>

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