ngx_slab_alloc() failed: no memory in cache keys zone "zone-xyz"

jakubp nginx-forum at
Tue Apr 1 00:13:20 UTC 2014


I am struggling with the very same issue at the moment...

If I read the right the code correctly all that nginx cares about is cache
size, keys zone size is not checked at all (except when more space needs to
be allocated).

ngx_http_file_cache_manager(void *data)
// <snip>
        if (size < cache->max_size) {
            return next;

        wait = ngx_http_file_cache_forced_expire(cache);

Are there any plans to monitor keys zone size and remove a chunk of LRU keys
if it's close to being full?


Posted at Nginx Forum:,237829,248885#msg-248885

More information about the nginx mailing list