How do I increase the number of locks in Red Hat Directory Server or Identity Management

Solution Verified - Updated -

Issue

  • The following messages are logged to /var/log/dirsrv/slapd-<instance>/errors:
[21/Oct/2014:17:07:46 +0100] - libdb: Lock table is out of available lock entries
  • The following messages are logged to /var/log/dirsrv/slapd-<instance>/errors:
[05/Aug/2016:00:26:46 +051800] - libdb: BDB2055 Lock table is out of available lock entries
[05/Aug/2016:00:26:46 +051800] - compactdb: failed to compact changelog; db error - 12 Cannot allocate memory
# cat /root/nsslapd-db-locks.ldif 
dn: cn=config,cn=ldbm database,cn=plugins,cn=config
changetype: modify
replace: nsslapd-db-locks
nsslapd-db-locks: 20000
#
# ldapmodify -H ldap://localhost -x -D cn=directory\ manager -W  -f /root/nsslapd-db-locks.ldif 
Enter LDAP Password: 
modifying entry "cn=config,cn=ldbm database,cn=plugins,cn=config"
ldap_modify: Server is unwilling to perform (53)
    additional info: nsslapd-db-locks can't be modified while the server is running.
  • How can I increase the number of locks?

Environment

  • Red Hat Directory Server 9
  • Red Hat DIrectory Server 10
  • Red Hat Identity Management

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.