malloc storage memory leak?

Cal Heldenbrand cal at
Thu Jul 19 21:08:20 CEST 2012

Hi everyone,

I just upgraded to Varnish 3.0.2, and changed the storage method to malloc,
with a size limitation of 5GB on a machine with 6GB of physical memory.
Varnish doesn't appear to be using the size limitation, and is consuming
memory until the machine dips into swap and becomes unresponsive.

Here are my options to varnishd:

varnishd -P /var/run/
-a :80
-f /etc/varnish/flexmaps.vcl
-T :6082
-t 120
-w 8,4000,120
-u apache -g apache
-p thread_pools 4
-p listen_depth 4096
-p lru_interval 3600
-h classic,70001
-s malloc,5000M

I've tried to lower the malloc setting, and it still seems to consume a ton
of memory.  Am I doing something wrong here, or is this a leak?

Thank you,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-dev mailing list