nginx: [alert] mmap(MAP_ANON|MAP_SHARED, 2097152) failed (28: No space left on device)

dullnicker nginx-forum at
Fri Oct 5 10:43:06 UTC 2012

Sergey Budnevitch Wrote:

> 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:
[root at c3 test]# ./mmap_test
65536 bytes mmaped
131072 bytes mmaped
262144 bytes mmaped
524288 bytes mmaped
mmap(MAP_ANON|MAP_SHARED, 1048576) failed, errno = 28

So there is an error. I guess I will have to contact the VPS provider
Again, thank you for your help and support!

Kind regards

Posted at Nginx Forum:,231404,231415#msg-231415

More information about the nginx mailing list