openldap slapd gives the error: Lock table is out of available lock entries
Issue
When trying to add a ldap entry with a large number of or large attributes, slapd gives the following error:
Jun 20 15:44:10 hostname slapd[2705]: bdb(dc=example,dc=com): Lock table is out of available lock entries
Jun 20 15:44:10 hostname slapd[2705]: => bdb_idl_insert_key: c_get failed: Cannot allocate memory (12)
Jun 20 15:44:10 hostname slapd[2705]: conn=1038 op=1 RESULT tag=105 err=80 text=index generation failed
Environment
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 5
- openldap-servers
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.