[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: slapd: warning: cannot open /etc/hosts.allow: Too many open files

David <davidke@whidbey.net> writes:

> The reason for this error is you ran out of file descriptors for the
> slapd process.  The default is 1024 for most systems.  To up it for just
> slapd you can add:

> ulimit -n XXX

> Where XXX is the number of file descriptors you want to allow, I use
> 8192.  Just add this line into the init script for slapd before you
> start slapd and this should resolve your issue.

Unless you're using i386 instead of amd64, at which point you'll still run
into an upper limit on the select size.

See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=378261 for more
details.  (Advice on whether the solution that I outline there is
supported and reasonable is welcome.)

Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>