# There is insufficient memory for the Java Runtime Environment in elasticsearch

**URL:** <https://discuss.elastic.co/t/there-is-insufficient-memory-for-the-java-runtime-environment-in-elasticsearch/48405>\
**Category:** Elasticsearch\
**Created:** [April 26, 2016, 9:26am UTC](https://discuss.elastic.co/t/there-is-insufficient-memory-for-the-java-runtime-environment-in-elasticsearch/48405 "2016-04-26T09:26:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Post date:** [April 26, 2016, 9:26am UTC](https://discuss.elastic.co/t/there-is-insufficient-memory-for-the-java-runtime-environment-in-elasticsearch/48405/1 "2016-04-26T09:26:46Z")

</div>

HI,  
I'm facing following issue while starting my elasticsearch, can any one help me to resolve my issue.

Elastisearch version 2.2.1  
java version 1.8

There is insufficient memory for the Java Runtime Environment to continue.  
Native memory allocation (mmap) failed to map 8190689280 bytes for committing reserved memory.  
Possible reasons:  
The system is out of physical RAM or swap space  
In 32 bit mode, the process size limit was hit  
Possible solutions:  
Reduce memory load on the system  
Increase physical memory or swap space  
Check if swap backing store is full  
Use 64 bit Java on a 64 bit OS  
Decrease Java heap size (-Xmx/-Xms)  
Decrease number of Java threads  
Decrease Java thread stack sizes (-Xss)  
Set larger code cache with -XX:ReservedCodeCacheSize=  
This output file may be truncated or incomplete.

Out of Memory Error (os\_linux.cpp:2627), pid=5299, tid=140486350145280

JRE version: (8.0\_71-b15) (build )  
Java VM: Java HotSpot(TM) 64-Bit Server VM (25.71-b15 mixed mode linux-amd64 compressed oops)\ Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

---

<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:** [April 27, 2016, 6:18am UTC](https://discuss.elastic.co/t/there-is-insufficient-memory-for-the-java-runtime-environment-in-elasticsearch/48405/2 "2016-04-27T06:18:02Z")

</div>

How much did you assign ES?

---

<div class="post-metadata">

**Author:** ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Post date:** [April 27, 2016, 6:51am UTC](https://discuss.elastic.co/t/there-is-insufficient-memory-for-the-java-runtime-environment-in-elasticsearch/48405/3 "2016-04-27T06:51:08Z")

</div>

i assigned 6GB memory for ES

---

<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 5, 2017, 10:56pm UTC](https://discuss.elastic.co/t/there-is-insufficient-memory-for-the-java-runtime-environment-in-elasticsearch/48405/4 "2017-07-05T22:56:04Z")

</div>


