[Date Prev][Date Next] [Chronological] [Thread] [Top]

slapd: Too many open files



Hi All,

slapd is crashing giving the following errors:
1)  "Too many open files" error.
2) 'cachesize' and 'checkpoint' unknown directives.

Here is the dump form my slapd.log:

Mar 18 19:35:51 ldapworld slapd[2039]: bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (March 2, 2004)
Mar 18 19:35:51 ldapworld slapd[2039]: /usr/local/openldap/etc/openldap/slapd.conf: line 39: unknown directive "cachesize" outside backend info and database definitions (ignored)
Mar 18 19:35:51 ldapworld slapd[2039]: /usr/local/openldap/etc/openldap/slapd.conf: line 44: unknown directive "checkpoint" outside backend info and database definitions (ignored)
Mar 18 19:35:51 ldapworld slapd[2039]: bdb_db_init: Initializing bdb database
Mar 18 19:35:52 ldapworld slapd[2040]: slapd starting
Mar 18 19:35:52 ldapworld slapd[2040]: conn=0 fd=10 ACCEPT from IP=10.99.0.117:47618 (IP=0.0.0.0:389)
Mar 18 19:35:52 ldapworld slapd[2040]: conn=0 op=0 BIND dn="" method=128
Mar 18 19:35:52 ldapworld slapd[2040]: conn=0 op=0 RESULT tag=97 err=0 text=
Mar 18 19:35:52 ldapworld slapd[2040]: conn=0 op=1 SRCH base="dc=iitb,dc=ac,dc=in" scope=2 deref=0 filter="(uid=rishanth_18)"
--
Mar 18 21:27:21 ldapworld slapd[2040]: conn=32755 fd=1014 ACCEPT from IP=10.200.12.113:49811 (IP=0.0.0.0:389)
Mar 18 21:27:22 ldapworld slapd[2040]: conn=32756 fd=1015 ACCEPT from IP=10.200.12.113:49812 (IP=0.0.0.0:389)
Mar 18 21:27:24 ldapworld slapd[2040]: conn=32757 fd=1016 ACCEPT from IP=10.200.12.113:49813 (IP=0.0.0.0:389)
Mar 18 21:27:26 ldapworld slapd[2040]: conn=32758 fd=1017 ACCEPT from IP=10.200.12.113:49814 (IP=0.0.0.0:389)
Mar 18 21:27:26 ldapworld slapd[2040]: conn=32759 fd=1018 ACCEPT from IP=10.200.12.113:49815 (IP=0.0.0.0:389)
Mar 18 21:27:27 ldapworld slapd[2040]: conn=32760 fd=1019 ACCEPT from IP=10.200.12.113:49816 (IP=0.0.0.0:389)
Mar 18 21:27:27 ldapworld slapd[2040]: conn=32761 fd=1020 ACCEPT from IP=10.99.0.117:50894 (IP=0.0.0.0:389)
Mar 18 21:27:27 ldapworld slapd[2040]: conn=32762 fd=1021 ACCEPT from IP=10.200.12.113:49817 (IP=0.0.0.0:389)
Mar 18 21:27:31 ldapworld slapd[2040]: conn=32763 fd=1022 ACCEPT from IP=10.200.12.113:49818 (IP=0.0.0.0:389)
Mar 18 21:27:31 ldapworld slapd[2040]: conn=32764 fd=1023 ACCEPT from IP=10.200.12.113:49819 (IP=0.0.0.0:389)
Mar 18 21:27:37 ldapworld slapd[2040]: daemon: accept(7) failed errno=24 (Too many open files)


Here is my slapd.conf:

include /usr/local/openldap/etc/openldap/schema/core.schema
include /usr/local/openldap/etc/openldap/schema/cosine.schema
include /usr/local/openldap/etc/openldap/schema/inetorgperson.schema
include /usr/local/openldap/etc/openldap/schema/nis.schema
include /usr/local/openldap/etc/openldap/schema/samba.schema
include /usr/local/openldap/etc/openldap/schema/qmail.schema
include /usr/local/openldap/etc/openldap/schema/nisdomainobject.schema
include /usr/local/openldap/etc/openldap/schema/myaccountstatus.schema
include /usr/local/openldap/etc/openldap/schema/mycampusres.schema


allow bind_v2
loglevel        256
pidfile         /var/run/slapd.pid
argsfile        /var/run/slapd.args
cachesize       100000
concurrency     128
threads         128
sizelimit       unlimited
checkpoint      128 60

database        bdb
suffix          "dc=iitb,dc=ac,dc=in"
rootdn          "cn=Manager,dc=iitb,dc=ac,dc=in"

index objectClass                                       eq,pres
index ou,mail,surname,givenname             eq,pres,sub
index cn,employeenumber                          approx,eq,pres,sub
index uidNumber,gidNumber,loginShell    eq,pres
index uid,memberUid                                 eq,pres,sub
index nisMapName,nisMapEntry                eq,pres,sub
index mailAlternateAddress,mailHost,member,owner        eq
index uniquemember                                      pres

directory           /var/lib/openldap-2.2.17/
include             /usr/local/openldap/etc/openldap/acis

What could be the possible problem of the crash ? slapd is crashing too frequently.

--
Saket.