malloc storage memory leak?

Cal Heldenbrand cal at fbsdata.com
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/varnish.pid
-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,

--Cal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20120719/c2db42cb/attachment.html>


More information about the varnish-dev mailing list