# Getting out of memory

**URL:** <https://discuss.elastic.co/t/getting-out-of-memory/12353>\
**Category:** Elasticsearch\
**Created:** [June 11, 2013, 2:53am UTC](https://discuss.elastic.co/t/getting-out-of-memory/12353 "2013-06-11T02:53:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhima\_santosh](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@bhima\_santosh](https://discuss.elastic.co/u/bhima_santosh)\
**Post date:** [June 11, 2013, 2:53am UTC](https://discuss.elastic.co/t/getting-out-of-memory/12353/1 "2013-06-11T02:53:43Z")

</div>

I am getting out of memory error when processing data on elastic search  
nodes.  
This is the heap dump.

1: 5940691 332678696 org.apache.lucene.index.SegmentNorms

2: 8941204 286118528 java.util.HashMap$Entry

3: 2629325 84138400 org.apache.lucene.index.FieldInfo

4: 7462 70466928 java.util.HashMap$Entry[]

5: 253939 37475472 char[]

6: 32018 32550872 byte[]

7: 25109 30609304 int[]

8: 688280 17893328  
org.elasticsearch.index.mapper.FieldMapper[]

9: 688329 16519896 java.util.Arrays$ArrayList

10: 688280 16518720  
org.elasticsearch.index.mapper.FieldMappers

--  
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:** [June 11, 2013, 7:53am UTC](https://discuss.elastic.co/t/getting-out-of-memory/12353/2 "2013-06-11T07:53:40Z")

</div>

Hey,

it would be useful if you can provide some context around your problem.  
Simply seeing a few objects plus counts and memory can only result in very  
rough to arbitrary guesses. What are you doing in that moment the OOM  
occurs? What did you do before? How many data did you index, what kind of  
queries are you executing? How much heap does your process use? What kind  
of system is it running on? Size of your cluster? Does this happen to the  
rest of the cluster nodes once the first leaves due to OOM? What is in the  
logfiles? Any monitoring information that can help? Anything that might  
help to pin down the issue is of great use for us.

--Alex

On Tue, Jun 11, 2013 at 4:53 AM, bhima santosh [santosh.bhima@gmail.com](mailto:santosh.bhima@gmail.com)wrote:

> I am getting out of memory error when processing data on Elasticsearch  
> nodes.  
> This is the heap dump.
> 
> 1: 5940691 332678696  
> org.apache.lucene.index.SegmentNorms\*\*\*\*
> 
> 2: 8941204 286118528 java.util.HashMap$Entry\*\*\*\*
> 
> 3: 2629325 84138400 org.apache.lucene.index.FieldInfo\*
> 
> * * *
> 
> 4: 7462 70466928 java.util.HashMap$Entry\*\*\*\*
> 
> 5: 253939 37475472 char\*\*\*\*
> 
> 6: 32018 32550872 byte\*\*\*\*
> 
> 7: 25109 30609304 int\*\*\*\*
> 
> 8: 688280 17893328  
> org.elasticsearch.index.mapper.FieldMapper\*\*\*\*
> 
> 9: 688329 16519896 java.util.Arrays$ArrayList\*\*\*\*
> 
> 10: 688280 16518720  
> org.elasticsearch.index.mapper.FieldMappers\*\*\*\*
> 
> --  
> 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:31am UTC](https://discuss.elastic.co/t/getting-out-of-memory/12353/3 "2017-07-06T02:31:53Z")

</div>


