This error suggests that memory is too small. So we need to modify the memory size of VM.max_map_count.
-
Edit file
vim /etc/sysctl.conf
-
Add this line
vm.max_map_count=655360
-
Edit file
sudo vim /etc/security/limits.conf
, add the content
* soft memlock unlimited
* hard memlock unlimited
-
Modify
sudo echo "vm.swappiness=0" >> /etc/sysctl.conf
-
Edit
sudo vim /etc/systemd/system.conf
DefaultLimitNOFILE=65536
DefaultLimitNPROC=32000
DefaultLimitMEMLOCK=infinity