[Date Prev][Date Next]
Re: slapd: warning: cannot open /etc/hosts.allow: Too many open files
David <firstname.lastname@example.org> 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 (email@example.com) <http://www.eyrie.org/~eagle/>