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

Re: max open files

On Fri, Mar 12, 2010 at 7:10 AM, Aaron Richton <richton@nbcs.rutgers.edu> wrote:
On Wed, 10 Mar 2010, Klemens Kittan wrote:

Mar  1 14:45:15 ldap1 slapd[25320]: warning: /etc/hosts.allow, line 19:
cannot open /etc/hosts.allow: Too many open files

cat /proc/sys/fs/file-max:

cat /proc/<slapd pid>/limits:
 Max open files 4096 4096 files

Sounds like you're mostly on the right track, but I didn't hear mention of compiling with a suitable OPENLDAP_FD_SETSIZE. Are your CPPFLAGS set accordingly?


Few weeks ago I had a similar issue, I found this thread very useful: http://www.sunmanagers.org/pipermail/summaries/2005-March/006226.html  but at the end the issue seemed to come from avahi daemon.  I'm not familiar with avahi but the config had:


The machine restarted and started avahi(it was stopped before but not disabled) and when ldap started to get some connections I received the same output:
Feb 18 00:49:05 ldap01 slapd[3704]: warning: cannot open /etc/hosts.deny: Too many open files

Hope that helps.