# Elasticsearch 2.3.2 There is insufficient memory for the Java Runtime Environment to continue

**URL:** <https://discuss.elastic.co/t/elasticsearch-2-3-2-there-is-insufficient-memory-for-the-java-runtime-environment-to-continue/49031>\
**Category:** Elasticsearch\
**Created:** [May 3, 2016, 9:25am UTC](https://discuss.elastic.co/t/elasticsearch-2-3-2-there-is-insufficient-memory-for-the-java-runtime-environment-to-continue/49031 "2016-05-03T09:25:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Isra](https://avatars.discourse-cdn.com/v4/letter/i/7ba0ec/32.png) [@Isra](https://discuss.elastic.co/u/Isra)\
**Post date:** [May 3, 2016, 9:25am UTC](https://discuss.elastic.co/t/elasticsearch-2-3-2-there-is-insufficient-memory-for-the-java-runtime-environment-to-continue/49031/1 "2016-05-03T09:25:09Z")

</div>

When I try to start Elasticsearch 2.3.2 using the command `./bin/elasticsearch`, I get the following error message:

```
 Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000414cc0000, 15757213696, 0) failed; error='Cannot allocate memory' (errno=12)
 #
 # There is insufficient memory for the Java Runtime Environment to continue.
 # Native memory allocation (mmap) failed to map 15757213696 bytes for committing reserved memory.
 # An error report file with more information is saved as:
 # /tmp/hs_err_pid17799.log

```

So I try to use the following command, but with the same result:

`./bin/elasticsearch -Xmx6g -Xms6g`

The following is my system stats

```
%Cpu(s): 0.1 us, 0.1 sy, 0.0 ni, 99.8 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 15400936 total, 3625164 used, 11775772 free, 319024 buffers
KiB Swap: 0 total, 0 used, 0 free. 1804888 cached Mem

```

So according to that, Elasticsearch should run fine, right?

What other settings should I set?

---

<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:** [May 4, 2016, 2:00am UTC](https://discuss.elastic.co/t/elasticsearch-2-3-2-there-is-insufficient-memory-for-the-java-runtime-environment-to-continue/49031/2 "2016-05-04T02:00:57Z")

</div>

What does that error file it refers to have in it?

ES should only use 1GB of heap at max if you don't specify a limit.

---

<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:54pm UTC](https://discuss.elastic.co/t/elasticsearch-2-3-2-there-is-insufficient-memory-for-the-java-runtime-environment-to-continue/49031/3 "2017-07-05T22:54:10Z")

</div>


