Hi All,
I've been growing a large headache on this one, i have a number of LDAP servers behind loadbalancing, since 2 days i constantly get the error: Too many open files. Although I'm not a newbie with linux I'm unable to resolve this, I have took the following stept:
Changed the /proc/sys/fs/file-max to 65535
Added the following configuration to /etc/security/limits.conf:
ldap soft nofile 65535 ldap hard nofile 65535 ldap - nofile 65535 # End of file
If I su to the ldap user where the process is running under:
[root@ldap5 ~]# su -m ldap bash: /root/.bashrc: Permission denied bash-3.2$ ulimit -H -n 65535 bash-3.2$ ulimit -S -n 65535
And still I get the error: Too many open files when open files are >1024. I'm bazzled.
If anyone can provide me with some tips, please.
Cheers, Sebastiaan.
On Fri, 24 Jun 2011, Sebastiaan Koetsier | proserve wrote:
I've been growing a large headache on this one, i have a number of LDAP servers behind loadbalancing, since 2 days i constantly get the error: Too many open files. Although I'm not a newbie with linux I'm unable to resolve this, I have took the following stept:
You need to specify nofile for ldap in the /etc/sysconfig/ldap file. For example, I have:
ULIMIT_SETTINGS="-n 16384"
Setting it for the ldap user in /etc/security/limits.conf will not have any effect, since it is root that starts the ldap server (so, the setting should be for root, not ldap).
Steve
Hi Steve,
Setting it for the ldap user in /etc/security/limits.conf will not have any effect, since it is root that starts the ldap server (so, the setting should be >for root, not ldap).
I've changed the settings and I'm waiting until the sessions to ldap grow, I will keep you posted on this.
Cheers, Sebastiaan.
Hi Steve,
The change of /etc/sysconfig/ldap did the trick, thanks for your help!
Cheers, Sebastiaan.
Check also 'timeout' at slapd.conf.
I solved my problem setting "timeout 30" at slapd.conf
On Fri, Jun 24, 2011 at 10:49 AM, Sebastiaan Koetsier | proserve skoetsier@proserve.nl wrote:
Hi Steve,
The change of /etc/sysconfig/ldap did the trick, thanks for your help!
Cheers, Sebastiaan. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos