[Varnish] #546: Varnish eating up my memory

Varnish varnish-bugs at projects.linpro.no
Mon Sep 14 17:03:06 CEST 2009


#546: Varnish eating up my memory
----------------------+-----------------------------------------------------
 Reporter:  hp197     |        Owner:  phk                
     Type:  defect    |       Status:  new                
 Priority:  normal    |    Milestone:  Varnish 2.1 release
Component:  varnishd  |      Version:  trunk              
 Severity:  normal    |   Resolution:                     
 Keywords:            |  
----------------------+-----------------------------------------------------
Comment (by hp197):

 For the record....

 It looks like i've solved my problem.
 I defined a grace period (in sub vcl_fetch: set beresp.grace = 30m;).

 After deleting that line i got memory usage as expected.

 {{{
   3.9 GiB +   1.2 MiB =   3.9 GiB       /usr/local/varnish/sbin/varnishd
 -P /var/run/varnish_xxx.pid -a :xxx -f
 /usr/local/varnish/etc/varnish/xxx.xxx.xxx.vcl -T :xxx -s malloc,3G -i xxx
 -n /usr/local/varnish/var/varnish/xxx -p thread_pools 4 -p lru_interval
 1800 (2)
 }}}

 Could there be an issue in the cleanup of the grace storage?

 Regards

-- 
Ticket URL: <http://varnish.projects.linpro.no/ticket/546#comment:28>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator


More information about the varnish-bugs mailing list