Elasticsearch 8.14 max memory size

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 ?

Hi there @elsgaard,

Here's the 8.14 docs for heap size:

By default, Elasticsearch automatically sets the JVM heap size based on a > node’s 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.