# Running out of memory indexing on linux

**URL:** <https://discuss.elastic.co/t/running-out-of-memory-indexing-on-linux/17538>\
**Category:** Elasticsearch\
**Created:** [May 15, 2014, 3:28pm UTC](https://discuss.elastic.co/t/running-out-of-memory-indexing-on-linux/17538 "2014-05-15T15:28:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vince\_Wadhwani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vince_wadhwani/32/1562_2.png) [@Vince\_Wadhwani](https://discuss.elastic.co/u/Vince_Wadhwani)\
**Post date:** [May 15, 2014, 3:28pm UTC](https://discuss.elastic.co/t/running-out-of-memory-indexing-on-linux/17538/1 "2014-05-15T15:28:42Z")

</div>

I recently switched from a mac to using debian linux. Same data set,  
indexing method, and elastic version. On OS X I can index my records (about  
1 million) but on linux I can see memory usage increasing over time until I  
finally run out and the process is killed. I've got 8GB of RAM and 16GB of  
Swap but I still can't get through the records I could with half that RAM  
on OSX.

Is there a config option somewhere I can toggle? (I've already tried  
enabling bootstrap.mlockall: true) Or is there something else going on?

-Vince

--  
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/e0268477-5cc2-49a9-ad95-f90960884578%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e0268477-5cc2-49a9-ad95-f90960884578%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Alberto\_Paro\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alberto_paro_2/32/1137_2.png) [@Alberto\_Paro\_2](https://discuss.elastic.co/u/Alberto_Paro_2)\
**Post date:** [May 16, 2014, 7:43am UTC](https://discuss.elastic.co/t/running-out-of-memory-indexing-on-linux/17538/2 "2014-05-16T07:43:22Z")

</div>

Are you using the SUN jvm 1.7 or above? I had similar issues with standard Linux openJDk.

Hi,  
Alberto Paro

Inviato da iPad

> Il giorno 15/mag/2014, alle ore 17:28, Vince Wadhwani [vince71@gmail.com](mailto:vince71@gmail.com) ha scritto:
> 
> I recently switched from a mac to using debian linux. Same data set, indexing method, and elastic version. On OS X I can index my records (about 1 million) but on linux I can see memory usage increasing over time until I finally run out and the process is killed. I've got 8GB of RAM and 16GB of Swap but I still can't get through the records I could with half that RAM on OSX.
> 
> Is there a config option somewhere I can toggle? (I've already tried enabling bootstrap.mlockall: true) Or is there something else going on?
> 
> ## -Vince
> 
> 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/e0268477-5cc2-49a9-ad95-f90960884578%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e0268477-5cc2-49a9-ad95-f90960884578%40googlegroups.com).  
> 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/AA2390DC-7AD0-4D50-8B3F-73000459F999%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/AA2390DC-7AD0-4D50-8B3F-73000459F999%40gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Vince\_Wadhwani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vince_wadhwani/32/1562_2.png) [@Vince\_Wadhwani](https://discuss.elastic.co/u/Vince_Wadhwani)\
**Post date:** [May 16, 2014, 1:34pm UTC](https://discuss.elastic.co/t/running-out-of-memory-indexing-on-linux/17538/3 "2014-05-16T13:34:41Z")

</div>

On Friday, May 16, 2014 3:43:22 AM UTC-4, Alberto Paro wrote:

> Are you using the SUN jvm 1.7 or above? I had similar issues with standard  
> Linux openJDk

Yes, I am. I've got 1.7.0\_55 via Debian Sid. How did you solve your issue?

--  
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/1d768b6b-b333-4d3a-bb3e-591536f91dc7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1d768b6b-b333-4d3a-bb3e-591536f91dc7%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, 1:28am UTC](https://discuss.elastic.co/t/running-out-of-memory-indexing-on-linux/17538/4 "2017-07-06T01:28:53Z")

</div>

Closed on July 6, 2017, 1:28am UTC


