spujadas / elk-docker

Elasticsearch, Logstash, Kibana (ELK) Docker image
Other
2.16k stars 908 forks source link

ES_HEAP_SIZE doesn't work anymore #359

Closed bmario closed 3 years ago

bmario commented 3 years ago

It seems, the Xms and Xmx options were removed upstream from the jvm.options file for elasticsearch. The script should create a file with them under /opt/elasticsearch/config/jvm.options.d/*.options or use ES_JAVA_OPTS instead, apparently.

https://www.elastic.co/guide/en/elasticsearch/reference/7.15/advanced-configuration.html#set-jvm-heap-size

spujadas commented 3 years ago

Thanks for reporting this, I think I’m going to go with the ES_JAVA_OPTS option as the script already supports this env var. Will look into this in a couple of days.

spujadas commented 3 years ago

Ended up going the jvm.options.d/*.options way for ES_JAVA_OPTS, and also applied the same technique to ES_HEAP_DISABLE. Updated in the 7.15.2-tagged image. Thanks again for raising this issue.