. Advertisement .
..3..
. Advertisement .
..4..
I get this message: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
I’m confused because I don’t have enough knowledge with this problem. Everyone’s help will be very appreciated to me. What is the cause of this error and the way to fix it? I look forward to receiving your answer. Thanks.
The cause:
Elasticsearch stores its indexes by default in a
mmapfs
directory. The operating system’s default mmap count limits are probably too low, which could lead to out of memory exceptions. The error max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] appeared as a result.Solution:
You can raise the limitations on Linux by using the command as
root
below:The
vm.max_map_count
option in/etc/sysctl.conf
should be updated in order to set the value permanently. Runsysctl vm.max_map_count
after restarting to confirm.