I have installed Elasticsearch and am able to get it started with the command service elasticsearch start
, but the service soon shuts down (within ~10sec).
I think the problem is related to memory as I see this error in the log
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
However, I cannot seem to increase the value for vm.max_map_count. When I run sysctl -w vm.max_map_count=262144
I get the error setting key "vm.max_map_count": Read-only file system
. I’ve also tried adding vm.max_map_count=262144
to /etc/sysctl.conf, but that makes no difference either.
Does someone know of a way to increase the value of vm.max_map_count
or how to prevent Elasticsearch from crashing?