# Unable to start Elasticsearch-5.6.4

**URL:** <https://discuss.elastic.co/t/unable-to-start-elasticsearch-5-6-4/116927>\
**Category:** Elasticsearch\
**Created:** [January 24, 2018, 9:09pm UTC](https://discuss.elastic.co/t/unable-to-start-elasticsearch-5-6-4/116927 "2018-01-24T21:09:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![venkat\_venkat](https://avatars.discourse-cdn.com/v4/letter/v/f17d59/32.png) [@venkat\_venkat](https://discuss.elastic.co/u/venkat_venkat)\
**Post date:** [January 24, 2018, 9:09pm UTC](https://discuss.elastic.co/t/unable-to-start-elasticsearch-5-6-4/116927/1 "2018-01-24T21:09:37Z")

</div>

I have installed 5.6.4 Zip file. While starting Elasticsearch getting below error

./bin/elasticsearch  
Error: encountered environment variables that are no longer supported  
Use jvm.options or ES\_JAVA\_OPTS to configure the JVM  
ES\_HEAP\_SIZE=10g: set -Xms10g and -Xmx10g in jvm.options or add "-Xms10g -Xmx10g" to ES\_JAVA\_OPTS

I have set the Heap Size in JVM.options as 15g. Please find the below.

In JVM.options i have set the below

```
# Xms represents the initial size of total heap space
# Xmx represents the maximum size of total heap space
     
-Xms15g
-Xmx15g

```

Please help me out.

---

<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:** [January 24, 2018, 9:45pm UTC](https://discuss.elastic.co/t/unable-to-start-elasticsearch-5-6-4/116927/2 "2018-01-24T21:45:49Z")

</div>

Please format your code using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) and not the citation button. It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

Please edit your post.

---

<div class="post-metadata">

**Author:** ![venkat\_venkat](https://avatars.discourse-cdn.com/v4/letter/v/f17d59/32.png) [@venkat\_venkat](https://discuss.elastic.co/u/venkat_venkat)\
**Post date:** [January 24, 2018, 10:57pm UTC](https://discuss.elastic.co/t/unable-to-start-elasticsearch-5-6-4/116927/3 "2018-01-24T22:57:30Z")

</div>

I have edited, please check and help me out.

Thanks.

---

<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:** [January 25, 2018, 9:42am UTC](https://discuss.elastic.co/t/unable-to-start-elasticsearch-5-6-4/116927/4 "2018-01-25T09:42:09Z")

</div>

Did you remove `ES_HEAP_SIZE`?  
If so, what is the error message you are getting now?

And don't set both: `jvm.options` AND `ES_JAVA_OPTS`. It's useless and you will never know which one is used at the end.

---

<div class="post-metadata">

**Author:** ![venkat\_venkat](https://avatars.discourse-cdn.com/v4/letter/v/f17d59/32.png) [@venkat\_venkat](https://discuss.elastic.co/u/venkat_venkat)\
**Post date:** [January 25, 2018, 11:57pm UTC](https://discuss.elastic.co/t/unable-to-start-elasticsearch-5-6-4/116927/5 "2018-01-25T23:57:24Z")

</div>

Thanks for your help.

I have removed ES\_HEAP\_SIZE in the environmental variables. Now it is working.

Thanks once again.

---

<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:** [February 22, 2018, 11:57pm UTC](https://discuss.elastic.co/t/unable-to-start-elasticsearch-5-6-4/116927/6 "2018-02-22T23:57:36Z")

</div>

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