Many actions on a server are blocked with the following error:
Cannot allocate memory
One of the following is applicable:
Server has run out of free memory:
# free -m total used free shared buffers cached Mem: 994 897 96 106 21 351 -/+ buffers/cache: 524 469 Swap: 0 0 0
Container limits have been reached:
# awk '$NF > 0' /proc/user_beancounters Version: 2.5 uid resource held maxheld barrier limit failcnt privvmpages 1954900 5089134 3500000 4000000 93324
Reached limits are identified by the non-zero value of the "failcnt" column:
Other container resources may also be exceeded. For example, "kmemsize" and "numproc":
# egrep 'kmemsize|numproc' /proc/user_beancounters 72030666: kmemsize 21389702 21893120 20971520 23068672 189 numproc 86 87 96 96 9
Opening some pages in Plesk give the following error randomly:
502 bad gateway nginx
The following error is shown when attempting to open Plesk interface or update a license key:
Error: The license key is invalid. In order to use Plesk, you need to obtain and install a new valid license key. The license key is intended only for use with Plesk operating inside the following virtual environments: Virtuozzo containers, VMWare, Microsoft Hyper-V, Xen, KVM, Virtuozzo Server, LXC, Docker.
The following errors are found in
ERR  Exception: PHP Warning: proc_open(): fork failed - Cannot allocate memory ERR  PleskUtilException: /usr/local/psa/admin/bin/filwrpr '93' failed with message: Unable to execute the utility.
The following errors are found in
(mod_fastcgi.c.2746) FastCGI-stderr: PHP Warning: proc_open() [<a href='function.proc-open'>function.proc-open</a>]: fork failed - Cannot allocate memory; File: /opt/psa/admin/plib/common_func.php3, Line: 1318 MemoryError: out of memory
The following error can appear during backup creation:
/opt/psa/admin/sbin/pmm-ras --get-dump-info --dump-file-specification=backup_info_1606282257.xml --with-feedback --session-path=/opt/psa/PMM/sessions/2016-06-28-225702.380 --verbose error : Memory allocation failed : buffer error: text too long error : Memory allocation failed : growing buffer I/O error : write error Error: boost::too_many_args: format-string referred to less arguments than were passed
There may be other errors too:
# /usr/local/psa/bootstrapper/pp11.5.30-bootstrapper/bootstrapper.sh repair date: write error: Cannot allocate memory /usr/local/psa/bootstrapper/pp11.5.30-bootstrapper/bootstrapper.sh: fork: Cannot allocate memory # /usr/local/psa/admin/bin/nginxmng -s PHP Warning: proc_open(): fork failed - Cannot allocate memory; File: /usr/local/psa/admin/plib/common_func.php3, Line: 560 # /usr/local/psa/admin/bin/send-error-report: error while loading shared libraries: /lib64/libpthread.so.0: cannot apply additional memory protection after relocation: Cannot allocate memory # rm file_name -bash: fork: Cannot allocate memory
Server is run out of RAM
- Some limits are exceeded on a container or on a Hardware Node.
Increase free RAM on the server
In order to increase resources for the container or for Hardware Node, please contact your service provider.
#- INTERNAL (content below this line is not visible in published article) -#
Increase resources for the container or for Hardware Node. Example for container:
# vzctl set xxxxx --kmemsize 110000:120000 --save UBC limits were set successfully
Saved parameters for Container xxxxx where xxxxx is a container ID on particular hardware node