Increasing ‘vm.max_map_count’ on a Plesk for Linux server is necessary to support applications that require a higher number of memory map areas than the default limit.
- Connect to the Server:
- Use SSH to access your server.
- If you can’t access SSH, contact your server administrator.
- Increase vm.max_map_count:
- Run this command to increase the value temporarily:
sysctl -w vm.max_map_count=655300
Or use this command:
echo 655350 > /proc/sys/vm/max_map_count
- Run this command to increase the value temporarily:
- Make the Change Permanent:
- Edit the ‘/etc/sysctl.conf’ file with a text editor.
- Add this line:
vm.max_map_count=655350
- Apply the Changes:
- Run the following command to apply changes immediately:
sysctl -p
- Run the following command to apply changes immediately:
Note: If using container virtualization, apply these steps on the hardware node side.
Additional Information:
- The file ‘/etc/sysctl.conf’ controls the maximum number of memory map areas a process can have.
- The default value is 65536, but some applications may need more.
In such a manner, you can increase vm.max_map_count on a Plesk for Linux Server.
Running into memory limit issues with WordPress and PHP? Explore our guide on How to Increase Your WordPress and PHP Memory Limit for solutions.