I may be missing something obvious, but I've got a couple Red Hat EL4 servers running FDS 1.0.2, and I keep getting the dreaded "Not listening for new connections - too many fds open" error.
I've looked at all the install and how-to guides, and have the following set up:
/etc/security/limits.conf:
* soft nofile 104851 * hard nofile 104851
/etc/sysctl.conf:
fs.file-max = 131072
/etc/profile:
ulimit -n 131072
/etc/pam.d/login:
session required /lib/security/pam_limits.so
Still, as soon as FDS hits 1024 FDs open, everything blows up.
What have I missed? I've also added a "ulimit -n 131072" to the top of the server's init script, but no dice.
Hello Patrick. Check nsslapd-descriptors and nsslapd-conntablesize in dse.ldif. If the latter isn't present it'll be equal to either getdtablesize() (which is RLIMIT_NOFILE on Linux I think) or nsslapd-descriptors, whichever is lower. nsslapd-descriptors sets the soft limit on the ns-slapd process, and nsslapd-conntablesize sets how many of the descriptors to use for incoming connections.
Ulf
Morris, Patrick wrote:
I may be missing something obvious, but I've got a couple Red Hat EL4 servers running FDS 1.0.2, and I keep getting the dreaded "Not listening for new connections - too many fds open" error.
I've looked at all the install and how-to guides, and have the following set up:
/etc/security/limits.conf:
soft nofile 104851
hard nofile 104851
/etc/sysctl.conf:
fs.file-max = 131072
/etc/profile:
ulimit -n 131072
/etc/pam.d/login:
session required /lib/security/pam_limits.so
Still, as soon as FDS hits 1024 FDs open, everything blows up.
What have I missed? I've also added a "ulimit -n 131072" to the top of the server's init script, but no dice.
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
From: Weltman, Ulf Sent: Monday, June 19, 2006 10:37 AM Subject: Re: [Fedora-directory-users] File descriptor problem
Hello Patrick. Check nsslapd-descriptors and nsslapd-conntablesize in dse.ldif. If the latter isn't present it'll be equal to either getdtablesize() (which is RLIMIT_NOFILE on Linux I think) or nsslapd-descriptors, whichever is lower. nsslapd-descriptors sets the soft limit on the ns-slapd process, and nsslapd-conntablesize sets how many of the descriptors to use for incoming connections.
Thanks -- nsslapd-maxdescriptors was set right at the point I'm seeing things break, so I increased it. Things seem to have been working fine since then.
389-users@lists.fedoraproject.org