DoNotDelete:docref Plesk for Linux kb: technical ABT: Group A
- Plesk for Linux
- 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]
The container has a lack of some UBC resources. For example,
# cat /proc/user_beancounters
Version: 2.5 uid resource held maxheld barrier limit failcnt 10001:
shmpages 17604 17604 20480 20480 18
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
/usr/local/psa/admin/conf/php.iniin any text editor and change the parameter (create if does not exist)
opcache.memory_consumptionfrom 100 to 64:
Please sign in to leave a comment.