Symptoms
-
Apache website(s) on CloudLinux server experience intermittent connection issues or do not allow any new connections.
-
During this time the following errors in the apache
/var/log/httpd/error_log
can be observed:[Tue Sep 13 02:17:55.901911 2016] [fcgid:error] [pid 372341:tid 139699248486464] (12)Cannot allocate memory: mod_fcgid: can't run /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
[Tue Sep 13 02:17:55.901938 2016] [fcgid:warn] [pid 372341:tid 139699248486464] (12)Cannot allocate memory: mod_fcgid: spawn process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper error
...
mmap() failed: [12] Cannot allocate memory -
Additionally,
failcnt
counter in/proc/user_beancounters
is increasing forprivvmpages
limit.# grep -B2 privvmpages /proc/user_beancounters
Version: 2.5
uid resource held maxheld barrier limit failcnt
10024: kmemsize 0 0 9223372036854775807 9223372036854775807 0
lockedpages 0 0 9223372036854775807 9223372036854775807 0
privvmpages 0 262144 9223372036854775807 262144 197598
Cause
CloudLinux LVE limits are exhausted.
Resolution
Adjust LVE limits accordingly. Please refer to CloudLinux Documentation for additional information about CloudLinux limits.
It is possible to adjust such limits per user using LVE Manager extension in Plesk, which is available under Extensions > My Extensions > LVE Manager.