# Increase Elastic Heap After Installation

**URL:** <https://discuss.elastic.co/t/increase-elastic-heap-after-installation/167837>\
**Category:** Elasticsearch\
**Created:** [February 11, 2019, 11:45am UTC](https://discuss.elastic.co/t/increase-elastic-heap-after-installation/167837 "2019-02-11T11:45:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![joubeh](https://avatars.discourse-cdn.com/v4/letter/j/65b543/32.png) [@joubeh](https://discuss.elastic.co/u/joubeh)\
**Post date:** [February 11, 2019, 11:45am UTC](https://discuss.elastic.co/t/increase-elastic-heap-after-installation/167837/1 "2019-02-11T11:45:51Z")

</div>

Hello,

please note that I've installed ES using windows MSI  
I'm trying to increase heap size using jvm.options as below

## JVM configuration

```
################################################################
## IMPORTANT: JVM heap size
################################################################
##
## You should always set the min and max JVM heap
## size to the same value. For example, to set
## the heap to 4 GB, set:
##
-Xms10g
-Xmx10g
##
## See https://www.elastic.co/guide/en/elasticsearch/reference/current/heap-size.html
## for more information
##
################################################################

```

but every time I start Elasticsearch Heap still 2.4 G, noting that I installed it using .msi  
and there is no elasticsearch-service-mgr.exe installed with it and there is no environment variables declared for ES jvm.

when I run elasticsearch.exe I got this line on the CMD

> [2019-02-11T13:47:57,249][INFO][o.e.e.NodeEnvironment] [MININT-UCDE45F-Master] heap size [2.4gb], compressed ordinary object pointers [true]

any idea where is the 2.4 G is declared and how to increase it?.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![maart](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@maart](https://discuss.elastic.co/u/maart)\
**Post date:** [February 11, 2019, 11:51am UTC](https://discuss.elastic.co/t/increase-elastic-heap-after-installation/167837/2 "2019-02-11T11:51:52Z")

</div>

Hello joubeh,

What is your Elasticsearch version?

---

<div class="post-metadata">

**Author:** ![joubeh](https://avatars.discourse-cdn.com/v4/letter/j/65b543/32.png) [@joubeh](https://discuss.elastic.co/u/joubeh)\
**Post date:** [February 11, 2019, 11:57am UTC](https://discuss.elastic.co/t/increase-elastic-heap-after-installation/167837/3 "2019-02-11T11:57:21Z")

</div>

Hey mart

6.4.2

---

<div class="post-metadata">

**Author:** ![maart](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@maart](https://discuss.elastic.co/u/maart)\
**Post date:** [February 11, 2019, 12:09pm UTC](https://discuss.elastic.co/t/increase-elastic-heap-after-installation/167837/4 "2019-02-11T12:09:36Z")

</div>

Alright. Did you try restart elasticsearch service after changed jvm?

---

<div class="post-metadata">

**Author:** ![joubeh](https://avatars.discourse-cdn.com/v4/letter/j/65b543/32.png) [@joubeh](https://discuss.elastic.co/u/joubeh)\
**Post date:** [February 11, 2019, 12:10pm UTC](https://discuss.elastic.co/t/increase-elastic-heap-after-installation/167837/5 "2019-02-11T12:10:13Z")

</div>

yes sure.

---

<div class="post-metadata">

**Author:** ![maart](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@maart](https://discuss.elastic.co/u/maart)\
**Post date:** [February 11, 2019, 12:40pm UTC](https://discuss.elastic.co/t/increase-elastic-heap-after-installation/167837/6 "2019-02-11T12:40:28Z")

</div>

Please check Elasticsearch log files. Up to your Elasticsearch version, there is only way to change heap from JVM options.

---

<div class="post-metadata">

**Author:** ![joubeh](https://avatars.discourse-cdn.com/v4/letter/j/65b543/32.png) [@joubeh](https://discuss.elastic.co/u/joubeh)\
**Post date:** [February 11, 2019, 1:03pm UTC](https://discuss.elastic.co/t/increase-elastic-heap-after-installation/167837/7 "2019-02-11T13:03:09Z")

</div>

I've checked the logs and I found it as below

```
[2019-02-11T14:56:06,742][INFO][o.e.n.Node] [MININT-UCDE45F-Master] initializing ...
[2019-02-11T14:56:06,817][INFO][o.e.e.NodeEnvironment] [MININT-UCDE45F-Master] using [1] data paths, mounts [[Windows (C:)]], net usable_space [353.3gb], net total_space [471.6gb], types [NTFS]
[2019-02-11T14:56:06,817][INFO][o.e.e.NodeEnvironment] [MININT-UCDE45F-Master] heap size [2.4gb], compressed ordinary object pointers [true]
[2019-02-11T14:56:08,021][INFO][o.e.n.Node] [MININT-UCDE45F-Master] node name [MININT-UCDE45F-Master], node ID [_gCXu2YfRwSifBw3M5F8WA]
[2019-02-11T14:56:08,037][INFO][o.e.n.Node] [MININT-UCDE45F-Master] version[6.4.2], pid[306812], build[unknown/unknown/04711c2/2018-09-26T13:34:09.098244Z], OS[Windows 10/10.0/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_181/25.181-b13]
[2019-02-11T14:56:08,037][INFO][o.e.n.Node] [MININT-UCDE45F-Master] JVM arguments [-Xms10240m, -Xmx10240m, -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, -Djava.io.tmpdir=C:\Users\ADMINI~1\AppData\Local\Temp\elasticsearch, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -Xloggc:logs/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=32, -XX:GCLogFileSize=64m, -Xmx2560m, -Xms2560m, -Delasticsearch, -Des.path.home=C:\Program Files\Elastic\Elasticsearch\6.4.2, -Des.path.conf=C:\ProgramData\Elastic\Elasticsearch\config]

```

its getting the maximum and minimum heap size from jvm.options but still heap is only 2.4 and I've 32 G ram so there is available memory to be deducted to ES

---

<div class="post-metadata">

**Author:** ![joubeh](https://avatars.discourse-cdn.com/v4/letter/j/65b543/32.png) [@joubeh](https://discuss.elastic.co/u/joubeh)\
**Post date:** [February 11, 2019, 1:21pm UTC](https://discuss.elastic.co/t/increase-elastic-heap-after-installation/167837/8 "2019-02-11T13:21:32Z")

</div>

I found the problem , it seems that when you define the heap in the installer it define new arguments in the end of the jvm.options file so it keep overwrite the values that I'm defining in beginning of the file. so I just changed them and it works.

---

<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 11, 2019, 1:35pm UTC](https://discuss.elastic.co/t/increase-elastic-heap-after-installation/167837/9 "2019-03-11T13:35:42Z")

</div>

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