# Default settings Xms and Xmx

**URL:** <https://discuss.elastic.co/t/default-settings-xms-and-xmx/324103>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [January 27, 2023, 11:35am UTC](https://discuss.elastic.co/t/default-settings-xms-and-xmx/324103 "2023-01-27T11:35:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![INS](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ins/32/92827_2.png) [@INS](https://discuss.elastic.co/u/INS)\
**Post date:** [January 27, 2023, 11:35am UTC](https://discuss.elastic.co/t/default-settings-xms-and-xmx/324103/1 "2023-01-27T11:35:51Z")

</div>

Hi  
Whether elastic has set with default Xms and Xmx or should I always remember to set it it in environment per node?  
I'm asking because I'm observing some wire increase heap on nodes, and I think this graph should look more like saw teeth. Why this memory is not being dumped?

 ![heap_hdd](https://us1.discourse-cdn.com/elastic/original/3X/5/1/5153cf56175a0519a570d61c5bfba069308205b7.jpeg)  
Elasitcsearch 8.1

---

<div class="post-metadata">

**Author:** ![Wave](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wave/32/117242_2.png) [@Wave](https://discuss.elastic.co/u/Wave)\
**Post date:** [February 13, 2023, 6:32pm UTC](https://discuss.elastic.co/t/default-settings-xms-and-xmx/324103/2 "2023-02-13T18:32:51Z")

</div>

In the past it was best practice to set your xms and xmx, but hasn't been for awhile (looks like it might have changed with 7.11), so the answer to your first question is not anymore. See [heap size settings](https://www.elastic.co/guide/en/elasticsearch/reference/8.6/important-settings.html#heap-size-settings) for more info.

While digging through the documentation I see that in version 7.11 the garbage collection settings will change behind the scenes when using heaps \<8gb. [7.11 changes](https://www.elastic.co/guide/en/elasticsearch/reference/7.11/release-highlights.html#_new_garbage_collection_defaults_for_small_heaps). This is a total guess on my part but maybe could explain the behavior you are seeing.

---

<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 13, 2023, 6:32pm UTC](https://discuss.elastic.co/t/default-settings-xms-and-xmx/324103/3 "2023-03-13T18:32:54Z")

</div>

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