ngx_slab_alloc() failed: no memory in cache keys zone

Nick Urbanik nick.urbanik at
Tue Sep 19 00:46:17 UTC 2017

Dear Folks,

We have this message repeatedly, despite increasing keys_zone size by
a factor of three to:

proxy_cache_path            /srv/mycache levels=1:2 keys_zone=myzone:150m inactive=15d;

This caused the errors to stop for three or four hours and then back

The cache itself is quite big:
sudo du -s /srv/mycache
1826303379	/srv/mycache

and we have many messages like this in our logs:
unlink() "/srv/mycache/c/fc/4e8755ecadf5a82ec7208c16d8ddbfcc" failed (2: No such file or directory)

Any suggestions most welcome.
Nick Urbanik 808-71011 nick.urbanik at
GPG: 7FFA CDC7 5A77 0558 DC7A 790A 16DF EC5B BB9D 2C24  ID: BB9D2C24
I disclaim, therefore I am.

More information about the nginx mailing list