If you may get an error max virtual memory areas vm.max_map_count 65530 is too low increase to at least when execute the SonarQube or Elastic Search in docker container in Linux instance,


You need to increase the max_map_count the value in Kernel paramenter that would avoid running out of map areas for the Vector Server process. Memory map areas are used as a side-effect of calling malloc, directly by mmap, mprotect, and madvise, and also when loading shared libraries and the default value is 65536.

We have few more options to set the value in your Linux machine for both CentOS and Ubuntu,

Can update the value to max_map_count file directly using the command below,

echo 262144 > /proc/sys/vm/max_map_count

or execute the command below,
echo vm.max_map_count=262144  >> /etc/sysctl .conf

reload the configuration settings as root user,
sysctl -p