[Varnish] #546: Varnish eating up my memory

Varnish varnish-bugs at projects.linpro.no
Thu Sep 3 18:03:44 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):

 I restarted the servers this morning with the proposed ulimit's.
 But after a couple of hours it's still eating up my memory.

 ulimit's i set before in the init scripts (right before the start of
 varnishd)
 {{{
 ulimit -l 82000
 ulimit -s 1024
 ulimit -n 131072
 }}}

 After a couple of hours:
 {{{
  Private  +  Shared  =  RAM used        Program

 484.3 MiB +  81.1 MiB = 565.4 MiB       /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
 file,/usr/local/varnish/var/varnish/xxx/cache.pool,1G -i xxx -n
 /usr/local/varnish/var/varnish/xxx -p thread_pools 4 -p lru_interval 1800
 (2)
 605.0 MiB +  81.1 MiB = 686.1 MiB       /usr/local/varnish/sbin/varnishd
 -P /var/run/varnish_yyy.pid -a :yyy -f
 /usr/local/varnish/etc/varnish/yyy.yyy.yyy.vcl -T :yyy -s
 file,/usr/local/varnish/var/varnish/yyy/cache.pool,1G -i yyy -n
 /usr/local/varnish/var/varnish/yyy -p thread_pools 4 -p lru_interval 1800
 (2)
   1.7 GiB +   1.1 MiB =   1.7 GiB       /usr/local/varnish/sbin/varnishd
 -P /var/run/varnish_zzz.pid -a :zzz -f
 /usr/local/varnish/etc/varnish/zzz.zzz.zzz.vcl -T :zzz -s
 file,/usr/local/varnish/var/varnish/zzz/cache.pool,512m -i zzz -n
 /usr/local/varnish/var/varnish/zzz -p thread_pools 4 -p lru_interval 1800
 (2)
   5.3 GiB +   1.1 MiB =   5.3 GiB       /usr/local/varnish/sbin/varnishd
 -P /var/run/varnish_aaa.pid -a :aaa -f
 /usr/local/varnish/etc/varnish/aaa.aaa.aaa.vcl -T :aaa -s
 file,/usr/local/varnish/var/varnish/aaa/cache.pool,5G -i aaa -n
 /usr/local/varnish/var/varnish/aaa -p thread_pools 4 -p lru_interval 1800
 (2)
  12.2 GiB +   1.0 MiB =  12.2 GiB       /usr/local/varnish/sbin/varnishd
 -P /var/run/varnish_bbb.pid -a :bbb -f
 /usr/local/varnish/etc/varnish/bbb.bbb.bbb.vcl -T :bbb -s
 file,/usr/local/varnish/var/varnish/bbb/cache.pool,3G -i bbb -n
 /usr/local/varnish/var/varnish/bbb -p thread_pools 4 -p lru_interval 1800
 (2)

  Private  +  Shared  =  RAM used        Program
 }}}

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


More information about the varnish-bugs mailing list