I must kindly ask for your help again. I have installed nginx on dozens
of
VPS and never came across the problem that I am facing now on my newest
installation. When I try to (re-) start nginx, I get the following error
message:
nginx: [alert] mmap(MAP_ANON|MAP_SHARED, 2097152) failed (28: No space
left
on device)
Here are some values from my /etc/sysctl.conf:
Controls the maximum size of a message, in bytes
kernel.msgmnb = 65536
Controls the default maxmimum size of a mesage queue
kernel.msgmax = 65536
Controls the maximum shared segment size, in bytes
kernel.shmmax = 68719476736
Controls the maximum number of shared memory segments, in pages
kernel.shmall = 4294967296
Needless to say that I have 900 MB RAM and 49 GB disk space free. OS is
CentOS 6.
What am I missing? I am really pulling my hair right now! Thank you very
much for any hint in advance!
Nothing unusual here. It seems mmap failed because of
vm hypervisor settings/limits. Try to compile (gcc -o mmap_test
mmap_test.c)
and run (./mmap_test) simple test in attachment - it should not exit
with
errors.
Thank you very much, Sergey!
I compiled and ran the test and here is the result:
Nothing unusual here. It seems mmap failed because of
vm hypervisor settings/limits. Try to compile (gcc -o mmap_test
mmap_test.c)
and run (./mmap_test) simple test in attachment - it should not exit
with
errors.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.