mmap() failed: [12] Cannot allocate memory

#1
Hi

Just moved to OpenLiteSpeed and I'm seeing an error occur many times in the stderr.log file. The system seems to have plenty of memory available so think this might be related to a server setting. Could anyone point me the right direction to where that might be?

mmap() failed: [12] Cannot allocate memory
 
#3
Thanks for the link. Loading out the server values it's not clear which one should be updated, do you know?

$ ulimit -Sa
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 62359
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 62359
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
 

Cold-Egg

Administrator
#4
May I know the site you are trying to load is written by PHP code? If so, try to increase:
Web admin > Server Configuration -> External App -> lsphp
  1. Process Soft Limit
  2. Process Hard Limit
Also, increase the memory limit from php.ini
 
#5
Understood, but it's not clear what the values should be increased to. The current setting values are empty so its defaulting back to the system default (not sure which one that is). Any ideas?

Yes, the sites are all written in PHP.
 
Top