# Insufficient memory for the Java Runtime Environment to continue

**URL:** <https://discuss.elastic.co/t/insufficient-memory-for-the-java-runtime-environment-to-continue/135169>\
**Category:** Elasticsearch\
**Created:** [June 8, 2018, 2:20pm UTC](https://discuss.elastic.co/t/insufficient-memory-for-the-java-runtime-environment-to-continue/135169 "2018-06-08T14:20:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SimpleCC](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@SimpleCC](https://discuss.elastic.co/u/SimpleCC)\
**Post date:** [June 8, 2018, 2:20pm UTC](https://discuss.elastic.co/t/insufficient-memory-for-the-java-runtime-environment-to-continue/135169/1 "2018-06-08T14:20:26Z")

</div>

I configured the environment and use **./elasticsearch** to launched the Elasticsearch-6.2.4，then I got the error message:

 ![6](https://us1.discourse-cdn.com/elastic/original/3X/9/9/994d823a6efa87b15c0bf9941525c1641c4dc701.jpg)  
the log content is:  
 ![1](https://us1.discourse-cdn.com/elastic/original/3X/5/7/57e70110027c3d44e46d7eb30285f1932cba9e85.jpg)  
 ![415](https://us1.discourse-cdn.com/elastic/original/3X/3/c/3c2a74704890aa927258937dae7d628c748bec7b.jpg)  
--------------- S Y S T E M ---------------

OS:CentOS Linux release 7.4.1708 (Core)

uname:Linux 3.10.0-693.2.2.el7.x86\_64 #1 SMP Tue Sep 12 22:26:13 UTC 2017 x86\_64  
libc:glibc 2.17 NPTL 2.17  
rlimit: STACK 8192k, CORE 0k, NPROC 4096, NOFILE 4096, AS infinity  
load average:0.00 0.01 0.05

Memory: 4k page, physical 1883496k(63668k free), swap 0k(0k free)

vm\_info: OpenJDK 64-Bit Server VM (25.171-b10) for linux-amd64 JRE (1.8.0\_171-b10), built on May 22 2018 01:32:00 by "mockbuild" with gcc 4.8.5 20150623 (Red Hat 4.8.5-28  
I set the heap size  
-xms1g to -xms512m  
-xmx1g to -xms512m  
in **jvm.options**  
Set **vm.max\_map\_count=262144**  
Set **limits.conf**  
_\* soft nofile 65536_  
_\* hard nofile 131072_  
_\* soft nofile 2048_  
_\* hard nofile 4096_

My cloud server has 2GB（I/O）

What should I do?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 8, 2018, 4:08pm UTC](https://discuss.elastic.co/t/insufficient-memory-for-the-java-runtime-environment-to-continue/135169/2 "2018-06-08T16:08:43Z")

</div>

Please don't post images of text as they are hardly readable and not searchable.

Instead paste the text and format it with `</>` icon. Check the preview window.

---

<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, 2018, 4:08pm UTC](https://discuss.elastic.co/t/insufficient-memory-for-the-java-runtime-environment-to-continue/135169/3 "2018-07-06T16:08:53Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
