# OutOfMemoryError

**URL:** <https://discuss.elastic.co/t/outofmemoryerror/21054>\
**Category:** Elasticsearch\
**Created:** [December 3, 2014, 10:42am UTC](https://discuss.elastic.co/t/outofmemoryerror/21054 "2014-12-03T10:42:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![balibaba](https://avatars.discourse-cdn.com/v4/letter/b/3da27b/32.png) [@balibaba](https://discuss.elastic.co/u/balibaba)\
**Post date:** [December 3, 2014, 10:42am UTC](https://discuss.elastic.co/t/outofmemoryerror/21054/1 "2014-12-03T10:42:15Z")

</div>

i have set:  
ulimit -l unlimted  
ulimit -v unlimted  
ulimit -m unlimted  
and  
bootstrap.mlockall: true

but when i index docs into es, the virtual memory will grow more and more larger,and it will hit the "swap limit" in the end ,i found the virtual memory seem to never been freed (if i delete the index,the virtual memory will be freed)  
my machine is virtual machine suse linux

please help me....

---

<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:46am UTC](https://discuss.elastic.co/t/outofmemoryerror/21054/2 "2017-07-06T00:46:21Z")

</div>

Closed on July 6, 2017, 12:46am UTC


