Varnish memory usage
Andreas Plesner Jacobsen
apj at mutt.dk
Sun Jan 22 16:44:45 CET 2012
On Sun, Jan 22, 2012 at 03:32:29PM +0000, Jan-Aage Frydenbø-Bruvoll wrote:
> When would transient objects actually leave the storage again? Can I
> force/trigger/monitor this at all?
Same rules apply for transient as for any other malloc store: TTL, LRU or
> The manual says "By default Varnish would use an unlimited malloc
> backend for this", which in my case is rather inconvenient since this
> varnish process sits in an LXC container, where it apparently sees the
> host's memory allocation and not the container's - that in turn leads
> to amusing situations where Varnish runs head first into the LXC
> resource limitations and gets OOM-killed.
You can just create a storage backend called "Transient" to override the
default. However, I think it's much more appropriate to investigate how they
end up in Transient in the first place.
More information about the varnish-misc