[Varnish] #538: [varnish-2.0.4] Potential Memory Leak

Varnish varnish-bugs at projects.linpro.no
Wed Aug 5 01:27:04 CEST 2009


#538: [varnish-2.0.4] Potential Memory Leak
-----------------------+----------------------------------------------------
 Reporter:  pprocacci  |       Owner:  phk              
     Type:  defect     |      Status:  new              
 Priority:  high       |   Milestone:                   
Component:  varnishd   |     Version:  trunk            
 Severity:  major      |    Keywords:  Memory Leak 2.0.4
-----------------------+----------------------------------------------------
 Just yesterday I upgraded from varnish version 1.x to 2.0.4 running on
 FBSD 7.1.  Ever since the varnish upgrade, Resident memory used by varnish
 has increased dramatically.  Normally allocations were <50 Megs on average
 are now as you can see nearly 3G.  This is quite irregular.

   PID USERNAME   THR PRI NICE   SIZE    RES STATE  C   TIME   WCPU COMMAND
 23037 root        26  44    0 10573M  2943M ucond  2   0:02  0.00%
 varnishd

 Worst off, resident memory will continue to climb until the OS starts
 paging other stuff out to swap, causing huge slowdowns overall.  The
 config that I used was unchanged between the two versions of the software.

 Here is my rc.conf from BSD'ish rc script which I know Mr. Kamp is
 familiar with:

 varnishd_enable="YES"
 varnishd_listen="xxx.xx.xx.xx:80"
 varnishd_config="/usr/local/etc/varnish/yourtango.com.vcl"
 varnishd_telnet="127.0.0.1:8080"
 varnishd_storage="file,/tmp/varnish.bin,10G -p thread_pools=4 -h
 classic,500009"

 I don't have a previous `top` output to provide, though I'm sure that
 wouldn't matter much.  There is certainly something up, and I can't
 (don't) have a clue where to begin looking.

 A couple of questions:  1) Is this at all a known issue?  2) Though
 doubtful, (to your knowledge) would a more recent version of FBSD yield
 different results.  3)  How would I go about debugging this if it does in
 fact appear to be a memory leak.

 Much appreciated,
 Paul

-- 
Ticket URL: <http://varnish.projects.linpro.no/ticket/538>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator


More information about the varnish-bugs mailing list