Skip to content

sysctl

Add permanent setting

echo "vm.max_map_count=262144" >> /etc/sysctl.d/99-sysctl.conf
sysctl --system
sysctl vm.max_map_count

Set socket maximum connection

/etc/sysctl.conf

net.core.somaxconn=1024
sysctl -p

Set memory overcommit

/etc/sysctl.conf

vm.overcommit_memory = 1
sysctl -p