# Elasticsearch is taking -Xms and -Xmx as 1g even after changing it to 32g in config\\jvm.options file

**URL:** <https://discuss.elastic.co/t/elasticsearch-is-taking-xms-and-xmx-as-1g-even-after-changing-it-to-32g-in-config-jvm-options-file/171738>\
**Category:** Elasticsearch\
**Created:** [March 11, 2019, 11:25am UTC](https://discuss.elastic.co/t/elasticsearch-is-taking-xms-and-xmx-as-1g-even-after-changing-it-to-32g-in-config-jvm-options-file/171738 "2019-03-11T11:25:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PrasanthDaya](https://avatars.discourse-cdn.com/v4/letter/p/5e9695/32.png) [@PrasanthDaya](https://discuss.elastic.co/u/PrasanthDaya)\
**Post date:** [March 11, 2019, 11:25am UTC](https://discuss.elastic.co/t/elasticsearch-is-taking-xms-and-xmx-as-1g-even-after-changing-it-to-32g-in-config-jvm-options-file/171738/1 "2019-03-11T11:25:19Z")

</div>

Hi,

I have changed the -Xms and -Xmx to 32g but still elasticsearch is considering -Xms and -Xmx as a 1g. I could see it is taking as a 1g in logs.

My jvm.options will look like

-Xms32g  
-Xmx32g

after changing I have restarted service but still it is taking as 1g. I'm using 6.5.4 version.

Kindly help me to increase the heap size.

Regards,  
Prasanth

---

<div class="post-metadata">

**Author:** ![xavierfacq](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xavierfacq/32/8744_2.png) [@xavierfacq](https://discuss.elastic.co/u/xavierfacq)\
**Post date:** [March 11, 2019, 3:37pm UTC](https://discuss.elastic.co/t/elasticsearch-is-taking-xms-and-xmx-as-1g-even-after-changing-it-to-32g-in-config-jvm-options-file/171738/2 "2019-03-11T15:37:34Z")

</div>

Hi,

Can you give the OS name and version (uname -avv), and how did you install Elasticsearch ?  
And, how do stop/start the service.

thx,  
Xavier

---

<div class="post-metadata">

**Author:** ![PrasanthDaya](https://avatars.discourse-cdn.com/v4/letter/p/5e9695/32.png) [@PrasanthDaya](https://discuss.elastic.co/u/PrasanthDaya)\
**Post date:** [March 12, 2019, 3:48am UTC](https://discuss.elastic.co/t/elasticsearch-is-taking-xms-and-xmx-as-1g-even-after-changing-it-to-32g-in-config-jvm-options-file/171738/3 "2019-03-12T03:48:13Z")

</div>

I'm using windows server 2012 R2 and I have hosted as a windows service using "elasticsearch-service.bat install" command.

And I'm starting and stopping from services.msc console.

Note: I have tried starting the service by "elasticsearch-service.bat start" command but still it didn't work.

Regards,  
Prasanth

---

<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:** [April 9, 2019, 3:48am UTC](https://discuss.elastic.co/t/elasticsearch-is-taking-xms-and-xmx-as-1g-even-after-changing-it-to-32g-in-config-jvm-options-file/171738/4 "2019-04-09T03:48:21Z")

</div>

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