How to Increase vm.max_map_count on a Plesk for Linux Server

June 24, 2024 / Plesk

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.

  1. Connect to the Server:
    1. Use SSH to access your server.
    2. If you can’t access SSH, contact your server administrator.
  2. Increase vm.max_map_count:
    1. 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
  3. Make the Change Permanent:
    1. Edit the ‘/etc/sysctl.conf’ file with a text editor.
    2. Add this line:
      vm.max_map_count=655350
  4. Apply the Changes:
    1. Run the following command to apply changes immediately:
      sysctl -p

Note: If using container virtualization, apply these steps on the hardware node side.

Additional Information:

  1. The file ‘/etc/sysctl.conf’ controls the maximum number of memory map areas a process can have.
  2. 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.

Spread the love