# Setting HEAP SIZE and one node doesn't get it

**URL:** <https://discuss.elastic.co/t/setting-heap-size-and-one-node-doesnt-get-it/119797>\
**Category:** Elasticsearch\
**Created:** [February 14, 2018, 12:45pm UTC](https://discuss.elastic.co/t/setting-heap-size-and-one-node-doesnt-get-it/119797 "2018-02-14T12:45:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juanps2](https://avatars.discourse-cdn.com/v4/letter/j/bcef8e/32.png) [@Juanps2](https://discuss.elastic.co/u/Juanps2)\
**Post date:** [February 14, 2018, 12:45pm UTC](https://discuss.elastic.co/t/setting-heap-size-and-one-node-doesnt-get-it/119797/1 "2018-02-14T12:45:48Z")

</div>

Hi,

I have 4 nodes and I'm setting HEAP SIZE in jvm.options file as follow. The serves have 8GB and I want to setup with 4GB

-Xms4g  
-Xmx4g

In three of them is working right but in one node the value is not set as I want and takes 1GB by default.

[2018-02-14T13:34:38,385][INFO][o.e.n.Node] [node\_3\_slave] JVM arguments [**-Xms1g, -Xmx1g,** -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -XX:+HeapDumpOnOutOfMemoryError, -Delasticsearch, -Des.path.home=C:\elasticsearch, -Des.path.conf=C:\elasticsearch\config, exit, -Xms1024m, -Xmx1024m, -Xss1024k]

How I can check to solve the problem?

I have also checked in kibana with the following command and this node do not listen the parameter  
GET \_nodes/stats/jvm

Thanks and BR

---

<div class="post-metadata">

**Author:** ![Juanps2](https://avatars.discourse-cdn.com/v4/letter/j/bcef8e/32.png) [@Juanps2](https://discuss.elastic.co/u/Juanps2)\
**Post date:** [February 14, 2018, 2:49pm UTC](https://discuss.elastic.co/t/setting-heap-size-and-one-node-doesnt-get-it/119797/2 "2018-02-14T14:49:14Z")

</div>

Solved!

I have removed and installed the elastic service and now is running. It seems the parameters are configured in the service and if I change anything of Jvm I have to reinstall.

Thanks

---

<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:** [March 14, 2018, 2:49pm UTC](https://discuss.elastic.co/t/setting-heap-size-and-one-node-doesnt-get-it/119797/3 "2018-03-14T14:49:27Z")

</div>

Closed on March 14, 2018, 2:49pm UTC

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