DoNotDelete:docref
Plesk for Linux
kb: technical
ABT: Group A
Applicable to:
- Plesk for Linux
Symptoms
- Plesk is installed inside a container and shows 502 Bad Gateway error.
-
On attempt to start 'sw-engine' service manually, the following error appears:
# service sw-engine start
Starting sw-engine-fpm: Fatal Error Unable to allocate shared memory segment of 104857600 bytes:
mmap: Cannot allocate memory (12) [FAILED]
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
- Connect to the hardware node via SSH
- 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
- Connect to the server via SSH
- 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:
CONFIG_TEXT: opcache.memory_consumption=64
Comments
0 comments
Please sign in to leave a comment.