LDAP errors, stops answering requests
Jim Kronebusch
jim at winonacotter.org
Wed Oct 31 21:19:51 GMT 2007
Twice now I have ran into a situation where LDAP stops answering requests for any
connected systems. Here is the error that shows up in the logs:
Oct 31 14:25:01 ltsp slapd[16822]: warning: cannot open /etc/hosts.allow: Too many open
files
Oct 31 14:25:01 ltsp slapd[16822]: warning: cannot open /etc/hosts.deny: Too many open files
Imagine the above two lines repeating a few thousand times.
If I restart slapd with /etc/init.d/slapd restart, the problems go away for a few weeks.
From what I have seen on Google this is probably a problem with too many open files.
I've seen a few recommendations to increase file descriptors, and a few other
recommendations on how to do this. I don't want to crazily start modifying system
settings without bouncing this off of someone else.
Anyone have some thoughts on why this is happening and the best way to fix it? I'm
running the LDAP server on Ubuntu 7.04.
By the way, this is the best recommendation I seemed to find on how to change the settings:
http://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/
That was until I ran cat /proc/sys/fs/file-max and it returned 1615850. I wouldn't
think there are over a million files open.
Thanks,
Jim Kronebusch
Cotter Tech Department
453-5188
--
This message has been scanned for viruses and
dangerous content by the Cotter Technology
Department, and is believed to be clean.
More information about the edubuntu-users
mailing list