# Elasticsearch 8.14 max memory size

**URL:** <https://discuss.elastic.co/t/elasticsearch-8-14-max-memory-size/364211>\
**Category:** Elasticsearch\
**Created:** [August 1, 2024, 2:26pm UTC](https://discuss.elastic.co/t/elasticsearch-8-14-max-memory-size/364211 "2024-08-01T14:26:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elsgaard](https://avatars.discourse-cdn.com/v4/letter/e/46a35a/32.png) [@elsgaard](https://discuss.elastic.co/u/elsgaard)\
**Post date:** [August 1, 2024, 2:26pm UTC](https://discuss.elastic.co/t/elasticsearch-8-14-max-memory-size/364211/1 "2024-08-01T14:26:59Z")

</div>

Hi ! With Elasticsearch 8.14 on Ubuntu, is it still required to set the max memory size to half the amount og available memory, or will elasticsearch calculate it automatically ?

If required to be set manually, where is the correct place to do it ? Traditionally i have set /etc/elasticsearch/jvm.options.d/jvm.options

How can i check that the correct amount is allocated ?

---

<div class="post-metadata">

**Author:** ![Kathleen\_DeRusso](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kathleen_derusso/32/132039_2.png) [@Kathleen\_DeRusso](https://discuss.elastic.co/u/Kathleen_DeRusso)\
**Post date:** [August 2, 2024, 7:12pm UTC](https://discuss.elastic.co/t/elasticsearch-8-14-max-memory-size/364211/2 "2024-08-02T19:12:51Z")

</div>

Hi there @elsgaard,

Here's the [8.14 docs](https://www.elastic.co/guide/en/elasticsearch/reference/8.14/important-settings.html#heap-size-settings) for heap size:

> By default, Elasticsearch automatically sets the JVM heap size based on a \> node’s [roles](https://www.elastic.co/guide/en/elasticsearch/reference/8.14/modules-node.html#node-roles) and total memory. We recommend the default sizing for most production environments.
> 
> If needed, you can override the default sizing by manually [setting the JVM heap size](https://www.elastic.co/guide/en/elasticsearch/reference/8.14/advanced-configuration.html#set-jvm-heap-size).
