Re: ngx_slab_alloc() failed: no memory in cache keys zone

2017-09-20 Thread Peter Booth
Lots of questions: What are the upstream requests? Are you logging hits and misses for the cache - what's the hit ratio? What size are the objects that you are serving? How many files are there in your cache? What OS and what hardware are you using? If it's Linux can you show the results of the f

Re: ngx_slab_alloc() failed: no memory in cache keys zone

2017-09-20 Thread Nick Urbanik
Dear Folks, On 19/09/17 11:16 +1000, Nick Urbanik wrote: On 19/09/17 10:46 +1000, Nick Urbanik wrote: 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; Is it pos

Re: ngx_slab_alloc() failed: no memory in cache keys zone

2017-09-18 Thread Nick Urbanik
Dear Folks, On 19/09/17 10:46 +1000, Nick Urbanik wrote: 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 a

ngx_slab_alloc() failed: no memory in cache keys zone

2017-09-18 Thread Nick Urbanik
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 again. The cache itself is quite

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

2014-05-08 Thread jakubp
> It does so - if an allocation of a cache node fails, this will > trigger a forced expiration of a cache node, and then tries to > allocate a node again. This is more an emergency mechanism > though (and not guaranteed to work, as another allocation may > fail, too), hence alerts are logged i

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

2014-04-03 Thread Maxim Dounin
Hello! On Wed, Apr 02, 2014 at 07:41:13PM -0400, jakubp wrote: > > What currently can be used for such a use case is "inactive=" > > parameter of the proxy_cache_path directive (see > > http://nginx.org/r/proxy_cache_path). It ensures that items not > > recently requested are removed from the

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

2014-04-02 Thread jakubp
> What currently can be used for such a use case is "inactive=" > parameter of the proxy_cache_path directive (see > http://nginx.org/r/proxy_cache_path). It ensures that items not > recently requested are removed from the cache, including ones > created with proxy_cache_min_uses. Have you tr

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

2014-04-02 Thread Maxim Dounin
Hello! On Wed, Apr 02, 2014 at 05:30:55AM -0400, jakubp wrote: > Hi Maxim > > Let me explain the use case. > I am using cache module to serve very large library. Some files are very > popular but a ot of them are not popular at all though. To deal with this > long tail I use proxy_cache_min_uses

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

2014-04-02 Thread jakubp
Hi Maxim Let me explain the use case. I am using cache module to serve very large library. Some files are very popular but a ot of them are not popular at all though. To deal with this long tail I use proxy_cache_min_uses to cache only after it was requested several times. So what I think happens

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

2014-04-01 Thread Maxim Dounin
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 all

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

2014-03-31 Thread jakubp
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) { // if (size < cach

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

2014-03-24 Thread nxspeed
> On Wednesday 27 March 2013 16:34:27 praveenkumar Muppala wrote: > > Hi, > > > > We have a nginx1.0.5 version installed in our system. We are getting > this > > error continuously in our nginx error log. ngx_slab_alloc() failed: > no > > memory in cache

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

2013-03-28 Thread Valentin V. Bartenev
On Wednesday 27 March 2013 16:34:27 praveenkumar Muppala wrote: > Hi, > > We have a nginx1.0.5 version installed in our system. We are getting this > error continuously in our nginx error log. ngx_slab_alloc() failed: no > memory in cache keys zone "zone-xyz". I have in

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

2013-03-27 Thread praveenkumar Muppala
Hi, We have a nginx1.0.5 version installed in our system. We are getting this error continuously in our nginx error log. ngx_slab_alloc() failed: no memory in cache keys zone "zone-xyz". I have increased this value to 20G, even 30G also still getting the same error. Can you help to fix