Plesk

Plesk sw-engine service cannot be started on Linux container: Unable to allocate shared memory segment

Symptoms

Cause

The container has a lack of some UBC resources. For example, shmpages:

# cat /proc/user_beancounters
Version: 2.5 uid resource held maxheld barrier limit failcnt 10001:
shmpages 17604 17604 20480 20480 18

Resolution

Click on a section to expand

Solution 1. Increase container limits

  1. Connect to the hardware node via SSH
  2. Increase the amount of the corresponding UBC limit for the container to at least 40960:

    # vzctl set 10001 --shmpages 40960 --save

Note: If there is no access to the Hardware Node, contact service provider to increase the limit.

Solution 2. Decrease memory consumption

  1. Connect to the server via SSH
  2. Open /usr/local/psa/admin/conf/php.ini in any text editor and change the parameter (create if does not exist) opcache.memory_consumption from 100 to 64:

    opcache.memory_consumption=64

Exit mobile version