$ tail -f /var/log/messages Oct 29 13:18:30 slapd[14761]: warning: cannot open /etc/hosts.allow: Too many open files Oct 29 13:18:30 slapd[14761]: warning: cannot open /etc/hosts.deny: Too many open files Oct 29 13:18:30 slapd[14761]: warning: cannot open /etc/hosts.allow: Too many open files Oct 29 13:18:30 slapd[14761]: warning: cannot open /etc/hosts.deny: Too many open files
By default, openLDAP can open 1024 files at the same time.
If you change SLAPD_ULIMIT_SETTINGS in /etc/sysconfig/ldap , you can solve this problem.
# vi /etc/sysconfig/ldap # Parameters to ulimit, use to change system limits for slapd #SLAPD_ULIMIT_SETTINGS="" ####ココ old SLAPD_ULIMIT_SETTINGS="-n 2048" ####ココ new
# service slapd restart