max open files

Klapproth, Martin Klapproth.M at
Thu Feb 3 11:30:05 CET 2011


Yes thats right. To increase the maximum number of file descriptors
add/edit the line in /etc/security/limits.conf:

*              -       nofile         8192

I've set the amount to 8192 (8*1024). I'm monitoring the file
descriptors of my varnish. Max was 2500.



From: varnish-misc-bounces at
[mailto:varnish-misc-bounces at] On Behalf Of Erwin
Sent: Dienstag, 1. Februar 2011 23:00
To: varnish-misc at
Subject: max open files

Hi All,

just witnessed a website crumbling due to Varnish hitting the
max_open_files limit (ulimit -n). After that I had the following
hypothesis I want to check with you.

When Varnish hits the _max_open_file limit it starts to put servers in
unhealthy state due to it not being able to open network sockets since
network sockets are also open files.

Is that a correct assumption?



More information about the varnish-misc mailing list