Open muralikg opened 5 years ago
I take back that we have limited URLs to cache. We use nginx-pagespeed which generates quite a few static resource urls that are cacheable. And these optimized static resources are generated on the fly based on user agent and those resources have really long expiration(1 year).
Size of cached payloads seems to be way less than peak memory usage of caddy (~800 MB). So I still think there is a leak somewhere else.
du -h --max-depth=1 /tmp/caddy_cache
395M /tmp/caddy_cache/
It seems that I am experiencing the same issue with wikiproxy. Caddy crashes with: fatal error: runtime: out of memory
.
I am attaching the complete log for reference: cache-bug-report.log.
It seems that I am experiencing the same issue with wikiproxy. Caddy crashes with:
fatal error: runtime: out of memory
.I am attaching the complete log for reference: cache-bug-report.log.
the same for me 😢
I can confirm the memory leak issue too!
Thanks for you work. It has been very helpful :+1:
Is there a way I can limit the amount of memory used for caching. I have seen caddy run out of memory and not accept subsequent connections after a few hours when caching is enabled.
I would not expect it to use so much memory given that the amount of cache-able content we have is limited. Can you please tell me if there is anything wrong/missing with the configuration
Following graph shows memory usage climbing up when caching is enabled. With no caching and only as a reverse proxy memory usage seems stable.
Any help would be greatly appreciated. Thanks!