[tech] OpenLDAP producing 'too many open files' errors

David Adam zanchey at ucc.gu.uwa.edu.au
Sun May 25 12:34:09 WST 2008


On a tip-off that IMAP logins were failing intermittently but frequently, 
I discovered that our OpenLDAP server was running out of file handles:

May 25 11:26:10 mussel slapd[27058]: warning: cannot open 
/etc/hosts.allow: Too many open files
May 25 11:26:10 mussel slapd[27058]: warning: cannot open /etc/hosts.deny: 
Too many open files

Restarted slapd to fix, and added a 'ulimit -n 4096' at the top of 
the init.d script to reduce the likelihood of this happening.

David Adam
UCC Wheel Member
zanchey at ucc


More information about the tech mailing list