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

Maxim Dounin mdounin at mdounin.ru
Tue Apr 1 12:32:50 UTC 2014


Hello!

On Mon, Mar 31, 2014 at 08:13:20PM -0400, jakubp wrote:

> Hi
> 
> 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?

Isn't max_size and inactive work for you?

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx mailing list