Welcome! Log In Create A New Profile

Advanced

Cache size exceeds max_size?

Posted by linnading 
linnading
Cache size exceeds max_size?
March 23, 2018 10:00PM
Hi there,

I've noticed that our cache directory grew over the max_size(5G) defined
with proxy_cache_path. We're running on Nginx 1.13.5. Is this a known issue?
What should I do to fix this?

Thanks!
Linna

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,279185,279185#msg-279185

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Maxim Dounin
Re: Cache size exceeds max_size?
March 24, 2018 04:00PM
Hello!

On Fri, Mar 23, 2018 at 04:49:19PM -0400, linnading wrote:

> I've noticed that our cache directory grew over the max_size(5G) defined
> with proxy_cache_path. We're running on Nginx 1.13.5. Is this a known issue?
> What should I do to fix this?

First of all, you have to look into your logs to find out what's
going on. In most cases, this is a symptom of another another
problem, usually nginx workers being killed or crashed. For
example, last time similar symptoms were traced to OOM killer
activity, see here:

http://mailman.nginx.org/pipermail/nginx/2018-March/055908.html

Also it might be a good idea to upgrade to a newer nginx version,
as 1.13.5 is somewhat old. Most recent 1.13.x version is 1.13.10,
see http://nginx.org/en/download.html.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
linnading
Re: Cache size exceeds max_size?
March 30, 2018 10:40PM
Turns out it's not configured correctly :) Thanks for responding Maxim!

Best,
Linna

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,279185,279259#msg-279259

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Sorry, only registered users may post in this forum.

Click here to login