How to Increase max_map_count:
1. Edit the sysctl.conf File
vi /etc/sysctl.conf
Add the following line to the file:
vm.max_map_count=map_count
Replace map_count with an appropriate value based on your system’s memory. As a general guideline, set map_count to approximately 1 per 128 KB of system memory. For instance, on a system with 256 GB of RAM, you might set:
vm.max_map_count=2097152
2. Reload the Configuration
After updating the sysctl.conf file, apply the new settings by reloading the configuration:
sudo sysctl -p
3. Verify the New Setting
cat /proc/sys/vm/max_map_count
This command should display the updated value you set in the sysctl.conf file.
4. Restart Vector
sudo systemctl restart vector
or whatever service management command is appropriate for your setup.
No comments:
Post a Comment