# Heap Dump of java.lang.OutOfMemoryError: Java heap space

**URL:** <https://discuss.elastic.co/t/heap-dump-of-java-lang-outofmemoryerror-java-heap-space/13647>\
**Category:** Elasticsearch\
**Created:** [September 17, 2013, 2:37pm UTC](https://discuss.elastic.co/t/heap-dump-of-java-lang-outofmemoryerror-java-heap-space/13647 "2013-09-17T14:37:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sambhav\_Sharma](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Sambhav\_Sharma](https://discuss.elastic.co/u/Sambhav_Sharma)\
**Post date:** [September 17, 2013, 2:37pm UTC](https://discuss.elastic.co/t/heap-dump-of-java-lang-outofmemoryerror-java-heap-space/13647/1 "2013-09-17T14:37:27Z")

</div>

We are running 4 instances of elasticsearch, Our 4 node cluster is made of  
4 m1.medium EC2 instances, which has 500GB added hard disk and 3.7G memory.  
We have been getting java heap out of memory errors quite regularly, so  
this time we decided to take the heap dump and analyze it. But,  
unfortunately its tough for us to make anything out of it. So we are  
seeking for some help, can anybody make a purposeful implementation of the  
following heap dump.

We have hosted jhat at the following link:  
[http://54.254.21.189:7000/histo/](http://54.254.21.189:7000/histo/)

Additional Info:  
We have some 15 open indexes, and 5 of them are big in size, of about 20GB,  
rest are small, upto 1GB.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [September 18, 2013, 9:23pm UTC](https://discuss.elastic.co/t/heap-dump-of-java-lang-outofmemoryerror-java-heap-space/13647/2 "2013-09-18T21:23:27Z")

</div>

Hey,

can you reliably reproduce that exception? Is it possible that you are  
facetting on an analyzed field (which means that all the terms of this  
field is loaded into memory) or something like that? Maybe we can find out  
the reason for this and see how to solve it.

Also, it might make sense to mention your elasticsearch and java versions.

--Alex

On Tue, Sep 17, 2013 at 4:37 PM, Sambhav Sharma  
[sambhav.sharma@minjar.com](mailto:sambhav.sharma@minjar.com)wrote:

> We are running 4 instances of elasticsearch, Our 4 node cluster is made of  
> 4 m1.medium EC2 instances, which has 500GB added hard disk and 3.7G memory.  
> We have been getting java heap out of memory errors quite regularly, so  
> this time we decided to take the heap dump and analyze it. But,  
> unfortunately its tough for us to make anything out of it. So we are  
> seeking for some help, can anybody make a purposeful implementation of the  
> following heap dump.
> 
> We have hosted jhat at the following link:  
> [http://54.254.21.189:7000/histo/](http://54.254.21.189:7000/histo/)
> 
> Additional Info:  
> We have some 15 open indexes, and 5 of them are big in size, of about  
> 20GB, rest are small, upto 1GB.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:15am UTC](https://discuss.elastic.co/t/heap-dump-of-java-lang-outofmemoryerror-java-heap-space/13647/3 "2017-07-06T02:15:41Z")

</div>


