max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

Error when elasticsearch is started:

max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

It means that the value of the virtual memory limit is set too small, at least 262144

Temporary method:

sysctl -w vm.max_map_count=262144

Permanent method:

vim /etc/sysctl.conf

Add a row:

vm.max_map_count=262144

Update configuration

sysctl -p

Similar Posts: