Varnish restarts when all memory is allocated

Kristian Lyngstol kristian at
Wed May 27 10:31:30 CEST 2009

On Tue, May 26, 2009 at 11:29:08PM +0200, Marco Walraven wrote:
> We are testing a Varnish Cache in our production environment with a 500Gb storage file and
> 32Gb of RAM. Varnish performance is excellent when all of the 32Gb is not allocated yet.
> The rates I am seeing here are around 40-60Mbit/s, with roughly 2.2M objects in cache and
> hitting a ratio of ~0.65, even then Varnish can handle it easily. However it is still
> warming up since we have a lot of objects that need to be cached.
> The problem I am facing is that as soon as RAM is exhausted Varnish restarts itself.
> Since this looked like an IO problem, we dropped ext2 in favour of xfs with much
> better results on writing to disk. However varnishd still stops working after it get
> to the 32G RAM limit. Note that I don't see any IO until just before it hits the 97% of
> RAM usage.      

Can you post the arguments you use to start varnish?

Kristian Lyngstøl
Redpill Linpro AS
Tlf: +47 21544179
Mob: +47 99014497
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <>

More information about the varnish-misc mailing list