I have an cluster with 5 nodes of elasticsearch, all nodes with same RAM 8GB, but elasticsearch process only stay up when i set heap with -Xms1g -Xmx1g, if i set -Xms4g -Xmx4g after some time elasticsearch dies, without load.
[291288.485572] Out of memory: Kill process 3655 (java) score 591 or sacrifice child
[291288.485756] Killed process 3754 (controller) total-vm:136444kB, anon-rss:564kB, file-rss:664kB, shmem-rss:0kB
I'm using ES 7.5 with x-pack basic license active.
The logs you quoted aren't from Elasticsearch dying: Killed process 3754 (controller) indicates this is the ML controller dying instead. But it's likely that Elasticsearch dies shortly after.
Can you share (a) the complete dmesg output and (b) the complete Elasticsearch logs from when it starts up to when it dies? Use https://gist.github.com/ since it'll be too much to share here.
There's definitely differences in the structure of memory usage between 6.x and 7.x that could account for the difference in behaviour you're seeing. But Elasticsearch is still using (much) less than the expected limit of 8GB of memory when it's killed.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.