[Date Prev][Date Next]
Re: (ITS#7383) slapd startup issue with mdb
> Full_Name: Marco Schirrmeister
> Version: 2.4.32
> OS: CentOS6 x86_64
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (184.108.40.206)
> I'm testing mdb since the last versions with our dataset.
> If I use my production config slapd does't start up.
> The following is in the log file.
> Sep 11 16:48:37 ds71 slapd2.4: @(#) $OpenLDAP: slapd 2.4.32 (Sep 6 2012
> 13:50:54) $#email@example.com:/home/mschirrmeister/rpmbuild/BUILD/openldap-2.4.32/servers/slapd
> Sep 11 16:48:37 ds71 slapd2.4: mdb_attr_dbs: database "dc=ogilvy,dc=com":
> mdb_open(omgPublishDate) failed: Too many open files in system (23).
> Sep 11 16:48:37 ds71 slapd2.4: backend_startup_one (type=mdb,
> suffix="dc=ogilvy,dc=com"): bi_db_open failed! (23)
> Sep 11 16:48:37 ds71 slapd2.4: slapd stopped.
> My /etc/security/limits.conf file has already the following entries.
> * soft nofile 65535
> * hard nofile 65535
> No matter what I try on the OS side, the error above comes up.
> I have about 130 index attributes in my config. Looks to me that this is the
> If I comment 8 attributes, slapd starts fine.
There is a hardcoded limit of 128. This same limit exists in back-bdb/hdb. You
can just edit back-mdb.h (or back-bdb.h) to raise the limit. Change the
MDB_INDICES (or BDB_INDICES) definition.
Congratulations, no one else has hit this limit in back-bdb in the past 12
years. Seems likely to me that you're indexing too much, but there's not
enough information here to judge.
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/