Symptoms
-
Many actions on a Plesk server cannot be performed with the following error:
Cannot allocate memory
-
Sites or random Plesk pages are not accessible with:
502 Bad Gateway
503 Service Unavailable
-
Cannot access Plesk or edit PHP settings:
PLESK_ERROR: Error: The license key is invalid. To use Plesk, you must obtain and install a new, valid license key. The license key is for use only with Plesk within the following virtual environments: Virtuozzo, VMware, Microsoft Hyper-V, Xen, KVM, Virtuozzo Server, LXC, Docker.
-
The following error appears in
/var/log/messages
:Out of memory in UB 69762: OOM killed process 22008 (php-cgi) score 0 vm:429108kB, rss:107332kB, swap:0kB
Out of memory in UB 69762: OOM killed process 22028 (php-cgi) score 0 vm:429968kB, rss:108648kB, swap:0kB
Cause
Server is running out of physical RAM, some limits are exceeded on the server
Resolution
Increase amount of RAM or SWAP values on the server.
Note: This is a task that should be performed by the System Administrator
Note: In the case of a virtual environment (VPS or Virtual Machine), contact your service provider in order to increase server limits.
Additional information
What are recommended requirements of SWAP, RAM and Disk space for Plesk Onyx?