# Embedded Elasticsearch single node OutOfMemoryError

**URL:** <https://discuss.elastic.co/t/embedded-elasticsearch-single-node-outofmemoryerror/20536>\
**Category:** Elasticsearch\
**Created:** [November 3, 2014, 9:16am UTC](https://discuss.elastic.co/t/embedded-elasticsearch-single-node-outofmemoryerror/20536 "2014-11-03T09:16:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Doru\_Sular](https://avatars.discourse-cdn.com/v4/letter/d/e9bcb4/32.png) [@Doru\_Sular](https://discuss.elastic.co/u/Doru_Sular)\
**Post date:** [November 3, 2014, 9:16am UTC](https://discuss.elastic.co/t/embedded-elasticsearch-single-node-outofmemoryerror/20536/1 "2014-11-03T09:16:53Z")

</div>

Hello Elasticsearch gurus,  
I have Elasticsearch running as a single embedded node inside my web  
application.  
I noticed that as soon the index folder size on the disk exceed the size of  
of the heap size (4GB in my case) the application become unresponsive and  
soon I got an OutOfMemory error.  
The elasticsearch.yml has default settings, nothing is change there.  
Do you have any suggestions how can I configure elasticsearch to get rid of  
this problem, except the obvious solution to increase the heap size value?  
Thank you very much

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/dbe12dff-7f4f-4401-91e5-d6f4b5c655d2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/dbe12dff-7f4f-4401-91e5-d6f4b5c655d2%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Doru\_Sular](https://avatars.discourse-cdn.com/v4/letter/d/e9bcb4/32.png) [@Doru\_Sular](https://discuss.elastic.co/u/Doru_Sular)\
**Post date:** [November 3, 2014, 3:00pm UTC](https://discuss.elastic.co/t/embedded-elasticsearch-single-node-outofmemoryerror/20536/2 "2014-11-03T15:00:07Z")

</div>

I am using java6 and elasticsearch 1.1.2 version.  
I am using only 1 shard, and 0 replica.  
Any ideas?

On Monday, November 3, 2014 10:16:53 AM UTC+1, Doru Sular wrote:

> Hello Elasticsearch gurus,  
> I have Elasticsearch running as a single embedded node inside my web  
> application.  
> I noticed that as soon the index folder size on the disk exceed the size  
> of of the heap size (4GB in my case) the application become unresponsive  
> and soon I got an OutOfMemory error.  
> The elasticsearch.yml has default settings, nothing is change there.  
> Do you have any suggestions how can I configure elasticsearch to get rid  
> of this problem, except the obvious solution to increase the heap size  
> value?  
> Thank you very much

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2b6c5df0-a3fc-4bf0-8b47-40d89961b6ba%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2b6c5df0-a3fc-4bf0-8b47-40d89961b6ba%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [November 3, 2014, 8:43pm UTC](https://discuss.elastic.co/t/embedded-elasticsearch-single-node-outofmemoryerror/20536/3 "2014-11-03T20:43:30Z")

</div>

Don't use java 6, you should be using 7 at a minimum, see

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

On 4 November 2014 02:00, Doru Sular [doru.sular@gmail.com](mailto:doru.sular@gmail.com) wrote:

> I am using java6 and elasticsearch 1.1.2 version.  
> I am using only 1 shard, and 0 replica.  
> Any ideas?
> 
> On Monday, November 3, 2014 10:16:53 AM UTC+1, Doru Sular wrote:
> 
> > Hello Elasticsearch gurus,  
> > I have Elasticsearch running as a single embedded node inside my web  
> > application.  
> > I noticed that as soon the index folder size on the disk exceed the size  
> > of of the heap size (4GB in my case) the application become unresponsive  
> > and soon I got an OutOfMemory error.  
> > The elasticsearch.yml has default settings, nothing is change there.  
> > Do you have any suggestions how can I configure elasticsearch to get rid  
> > of this problem, except the obvious solution to increase the heap size  
> > value?  
> > Thank you very much
> 
> --  
> 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).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/2b6c5df0-a3fc-4bf0-8b47-40d89961b6ba%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2b6c5df0-a3fc-4bf0-8b47-40d89961b6ba%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/2b6c5df0-a3fc-4bf0-8b47-40d89961b6ba%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2b6c5df0-a3fc-4bf0-8b47-40d89961b6ba%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZ%3DQ0w0rTftz9Fv8667R5rWhxtoPS1ukYfUPXgknjii9Bw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZ%3DQ0w0rTftz9Fv8667R5rWhxtoPS1ukYfUPXgknjii9Bw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Doru\_Sular](https://avatars.discourse-cdn.com/v4/letter/d/e9bcb4/32.png) [@Doru\_Sular](https://discuss.elastic.co/u/Doru_Sular)\
**Post date:** [November 17, 2014, 10:51am UTC](https://discuss.elastic.co/t/embedded-elasticsearch-single-node-outofmemoryerror/20536/4 "2014-11-17T10:51:59Z")

</div>

Hi Mark, java 7 is a no go for me, because of my clients. However, I tryed  
using java7 and the problem still persist.

On Monday, November 3, 2014 9:43:56 PM UTC+1, Mark Walkom wrote:

> Don't use java 6, you should be using 7 at a minimum, see  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html#jvm-version)
> 
> On 4 November 2014 02:00, Doru Sular \<[doru....@gmail.com](mailto:doru....@gmail.com) \<javascript:\>\>  
> wrote:
> 
> > I am using java6 and elasticsearch 1.1.2 version.  
> > I am using only 1 shard, and 0 replica.  
> > Any ideas?
> > 
> > On Monday, November 3, 2014 10:16:53 AM UTC+1, Doru Sular wrote:
> > 
> > > Hello Elasticsearch gurus,  
> > > I have Elasticsearch running as a single embedded node inside my web  
> > > application.  
> > > I noticed that as soon the index folder size on the disk exceed the size  
> > > of of the heap size (4GB in my case) the application become unresponsive  
> > > and soon I got an OutOfMemory error.  
> > > The elasticsearch.yml has default settings, nothing is change there.  
> > > Do you have any suggestions how can I configure elasticsearch to get rid  
> > > of this problem, except the obvious solution to increase the heap size  
> > > value?  
> > > Thank you very much
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/2b6c5df0-a3fc-4bf0-8b47-40d89961b6ba%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2b6c5df0-a3fc-4bf0-8b47-40d89961b6ba%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/2b6c5df0-a3fc-4bf0-8b47-40d89961b6ba%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2b6c5df0-a3fc-4bf0-8b47-40d89961b6ba%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d73cf89d-2286-4157-a70a-f087c09c1a83%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d73cf89d-2286-4157-a70a-f087c09c1a83%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:49am UTC](https://discuss.elastic.co/t/embedded-elasticsearch-single-node-outofmemoryerror/20536/5 "2017-07-06T00:49:37Z")

</div>


