I am having problem with slapd or LDAP Service , There is a point where in tail -f /var/log/messages shows message like this:
Feb 12 10:21:16 calculate slapd: warning: cannot open /etc/hosts.allow: Too many open files
Feb 12 10:21:16 calculate slapd: warning: cannot open /etc/hosts.allow: Too many open files
Feb 12 10:21:16 calculate slapd: warning: cannot open /etc/hosts.allow: Too many open files
Feb 12 10:21:16 calculate slapd: warning: cannot open /etc/hosts.allow: Too many open files
Feb 12 10:21:16 calculate slapd: error: bad option name: “`���”
Feb 12 10:21:16 calculate slapd: warning: cannot open /etc/hosts.allow: Too many open files
Feb 12 10:21:16 calculate slapd: error: bad option name: “`���”
Feb 12 10:21:16 calculate slapd: warning: cannot open /etc/hosts.allow: Too many open files
I have changed ulimit also, it is 10240 for open files.,.(earlier it was just 1024)
Can you tell me why is it so, During this my slapd service hangs completely, I have to restart the slapd service manually… , I thought by changing ulimit of open files size to 10240, This will be fixed. But i am still having problems…
What role does hosts.allow file plays and Why does it says Too many open files?
Please suggest some permanent fix. I have attached the logs…
This logs is for the month of Feb, But this happened today also ,And output for logs was the same as attached…
I use following services
NFS
* status: started
Samba
* status: started
Squid
* status: started
Slapd
* status: started
Puppet
* status: started
Heartbeat
heartbeat OK [pid 16836 et al] is running on calculate [calculate]…
Clamd
* status: started
I have given Static IP Address to my machine CDS Server as there is no DHCP Server on to this VLAN. This error has more to do with LDAP Service as it shows
“calculate slapd: warning: cannot open /etc/hosts.allow: Too many open files”
Following is the output from ulimit -a
calculate home # ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 16108
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 10240
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 16108
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
Let me know if you need more information,Please help to get this issue resolved
I have Built an website www.fileshosts.blogspot.com for this purpose to download the files from hosts. i have used google drive as files hosts. so enjoy it and download many files at a time from fileshosts