# ElasticSearch 5.0 not installing on Windows

**URL:** <https://discuss.elastic.co/t/elasticsearch-5-0-not-installing-on-windows/49226>\
**Category:** Elasticsearch\
**Created:** [May 4, 2016, 9:16pm UTC](https://discuss.elastic.co/t/elasticsearch-5-0-not-installing-on-windows/49226 "2016-05-04T21:16:22Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sameer\_Panicker](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Sameer\_Panicker](https://discuss.elastic.co/u/Sameer_Panicker)\
**Post date:** [May 4, 2016, 9:16pm UTC](https://discuss.elastic.co/t/elasticsearch-5-0-not-installing-on-windows/49226/1 "2016-05-04T21:16:22Z")

</div>

I am trying to setup ES 5.0 on my machine. ES 2.2.0 was the prev. one which is working fine.

Now I am trying to upgrade it. During installation I am receiving this error.

Error: encountered environment variables that are no longer supported  
Use jvm.options or ES\_JAVA\_OPTS to configure the JVM  
ES\_HEAP\_SIZE=-Xms512m and -Xmx512m: set -Xms-Xms512m and -Xmx512m and -Xmx-Xms51  
2m and -Xmx512m in jvm.options or add "-Xms-Xms512m and -Xmx512m -Xmx-Xms512m an  
d -Xmx512m" to ES\_JAVA\_OPTS

What am I missing here ?

---

<div class="post-metadata">

**Author:** ![deepak\_guleria](https://avatars.discourse-cdn.com/v4/letter/d/bc8723/32.png) [@deepak\_guleria](https://discuss.elastic.co/u/deepak_guleria)\
**Post date:** [May 4, 2016, 9:29pm UTC](https://discuss.elastic.co/t/elasticsearch-5-0-not-installing-on-windows/49226/2 "2016-05-04T21:29:50Z")

</div>

Looking into this..

---

<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:** [May 4, 2016, 9:34pm UTC](https://discuss.elastic.co/t/elasticsearch-5-0-not-installing-on-windows/49226/3 "2016-05-04T21:34:19Z")

</div>

Have you seen this? [https://www.elastic.co/guide/en/elasticsearch/reference/master/breaking\_50\_packaging.html#\_jvm\_options](https://www.elastic.co/guide/en/elasticsearch/reference/master/breaking_50_packaging.html#_jvm_options)

---

<div class="post-metadata">

**Author:** ![Sameer\_Panicker](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Sameer\_Panicker](https://discuss.elastic.co/u/Sameer_Panicker)\
**Post date:** [May 4, 2016, 10:22pm UTC](https://discuss.elastic.co/t/elasticsearch-5-0-not-installing-on-windows/49226/4 "2016-05-04T22:22:29Z")

</div>

the jvm.config file looks OK. Do I need to make any modifications here ?

---

<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:** [May 5, 2016, 5:48am UTC](https://discuss.elastic.co/t/elasticsearch-5-0-not-installing-on-windows/49226/5 "2016-05-05T05:48:12Z")

</div>

You are probably setting ES\_HEAP\_SIZE somewhere but you should not do it anymore and use ES\_JAVA\_OPTS instead.

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [May 5, 2016, 10:10am UTC](https://discuss.elastic.co/t/elasticsearch-5-0-not-installing-on-windows/49226/6 "2016-05-05T10:10:23Z")

</div>

@dadoonet is correct, but you should prefer `jvm.options` over using an environment variable. Note that your unsupported `ES_HEAP_SIZE` setting is not in the correct format to begin with though.

---

<div class="post-metadata">

**Author:** ![Sameer\_Panicker](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Sameer\_Panicker](https://discuss.elastic.co/u/Sameer_Panicker)\
**Post date:** [May 5, 2016, 10:12pm UTC](https://discuss.elastic.co/t/elasticsearch-5-0-not-installing-on-windows/49226/7 "2016-05-05T22:12:31Z")

</div>

I am not able to figure out where is the ES\_HEAP\_SIZE option set. I tried looking into the Env. Variables, YML Files. But couldnt get any references. Also the jvm.options file also looks clear.

These are the steps I have followed inorder to setup ES 5.0.

1. Downloaded the Windows zip - [https://www.elastic.co/v5](https://www.elastic.co/v5)
2. Unzipped the ES folder.
3. Open CMD in Admin mode.
4. Navigated to the ES bin path and execute CMD line - service.bat install  
 ![](https://us1.discourse-cdn.com/elastic/original/2X/6/6cfe62dec94f70ed8b3e9a3d50b9afe76083dd81.png)

I am able to load kibana 5 properly. The prb is only with ES.

Not getting how and where I need to set these options ?

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [May 5, 2016, 10:42pm UTC](https://discuss.elastic.co/t/elasticsearch-5-0-not-installing-on-windows/49226/8 "2016-05-05T22:42:04Z")

</div>

You clearly configured this somewhere, I don't know where. You should start by checking your system environment variables and the service (`service.bat manager`).

---

<div class="post-metadata">

**Author:** ![Sameer\_Panicker](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Sameer\_Panicker](https://discuss.elastic.co/u/Sameer_Panicker)\
**Post date:** [May 14, 2016, 4:09pm UTC](https://discuss.elastic.co/t/elasticsearch-5-0-not-installing-on-windows/49226/9 "2016-05-14T16:09:53Z")

</div>

I tried looking for that variable name but couldnt find it anywhere.

Can you please let me know what has changed in the installation process for Kibana between 4.5/5.0 ?

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [May 14, 2016, 4:21pm UTC](https://discuss.elastic.co/t/elasticsearch-5-0-not-installing-on-windows/49226/10 "2016-05-14T16:21:41Z")

</div>

> [@Sameer\_Panicker](#):
>
> Can you please let me know what has changed in the installation process for Kibana between 4.5/5.0 ?

You'll have better luck with that question in the [Kibana category](https://discuss.elastic.co/c/kibana).

---

<div class="post-metadata">

**Author:** ![111148](https://avatars.discourse-cdn.com/v4/letter/1/eb8c5e/32.png) [@111148](https://discuss.elastic.co/u/111148)\
**Post date:** [January 17, 2017, 6:41pm UTC](https://discuss.elastic.co/t/elasticsearch-5-0-not-installing-on-windows/49226/11 "2017-01-17T18:41:01Z")

</div>

you can try to find this variable. just open cmd and paste: set| findstr "HEAP"  
If you will get the positive result than go to the PC-\>Properties-\>Advanced-\>Environment Variables-\>Scroll down and delete the "ES\_HEAP\_SIZE".

---

<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:04pm UTC](https://discuss.elastic.co/t/elasticsearch-5-0-not-installing-on-windows/49226/12 "2017-07-05T22:04:05Z")

</div>


