How to increase vm.max_map_count?

To make it persistent, you can add this line:

vm.max_map_count=262144

in your /etc/sysctl.conf and run

$ sudo sysctl -p

to reload configuration with new value


I use

# sysctl -w vm.max_map_count=262144 

And for the persistence configuration

# echo "vm.max_map_count=262144" >> /etc/sysctl.conf

Att.


sysctl -w vm.max_map_count=262144