Child dying with "Too many open files"

Andrew Knapp andrew at
Thu Feb 21 01:20:31 CET 2008

That was stupid...I forgot to say that I'm using the varnish 1.1.2-5
rpm's from, running on centos 5.


From: varnish-misc-bounces at
[mailto:varnish-misc-bounces at] On Behalf Of Andrew
Sent: Wednesday, February 20, 2008 4:04 PM
To: varnish-misc at
Subject: Child dying with "Too many open files"




I'm getting this error when running varnishd:



Child said (2, 15369): <<Assert error in wrk_thread(), cache_pool.c line

  Condition((pipe(w->pipe)) == 0) not true.

  errno = 24 (Too many open files)


Cache child died pid=15369 status=0x6


uname -a:

Linux <hostname> 2.6.18-53.1.4.el5 #1 SMP Fri Nov 30 00:45:55 EST 2007
x86_64 x86_64 x86_64 GNU/Linux


command used to start varnish:

/usr/sbin/varnishd -d -d -a :80 -f /etc/varnish/photo.vcl -T
<internalIP>:6082 -t 120 -w 10,700,30 -s
file,/c01/varnish/varnish_storage.bin,12G -u varnish -g varnish -P


I have NFILES=270000 set in /etc/sysconfig/varnish. Do I just need to up
that value?




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

More information about the varnish-misc mailing list