Closed luislard closed 4 months ago
Out of the box, Elasticsearch's default settings automatically size your JVM heap based on node role and total memory; by default, it is up to half of the physical RAM, capping at 32GB.
However, it is possible to limit ES's appetites by setting the ES_JAVA_OPTS
environment variable.
What you need to do:
LOCATION
in the output of vip dev-env start
).lando.local.yml
file with the following content:
services:
elasticsearch:
type: compose
services:
environment:
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
You must set the appropriate values for -Xms
(the initial size of total heap space) and -Xmx
(the maximum size of total heap space).
Please let me know if that helps.
Expected/Desired Behavior
Currently when starting an environment with elasticsearch the ES container takes too much memory.
Dont know if it is a known issue or if there should be documentation on how to change the config for this.
Actual Behavior
See docker stats output:
Steps to Reproduce the Problem
OS: Linux Ubuntu 22.04 VIP CLI: 2.39.0
With docker using default context (not docker desktop) and the following parameters
And then running
The container is getting too much memory.
(Optional) Additional notes
Tried this:
But kills the ES container.