Chapter 3. Tuning the Number of Locks

Lock mechanisms in Directory Server control how many copies of Directory Server processes can run at the same time. For example, during an import job, Directory Server sets a lock in the /run/lock/dirsrv/slapd-instance_name/imports/ directory to prevent the ns-slapd (Directory Server) process, another import, or export operations from running.
If the server runs out of available locks, the following error is logged in the /var/log/dirsrv/slapd-instance_name/errors file:
libdb: Lock table is out of available locks
If error messages indicate that the lock table is out of available locks, double the number of locks. If the problem persists, double the value again.

3.1. Manually Monitoring the Number of Locks

To monitor the number of locks using the command line, enter:
# ldapsearch -D "cn=Directory Manager" -W -p 389 -h -x
     -s sub -b "cn=database,cn=monitor,cn=ldbm database,cn=plugins,cn=config"
     nsslapd-db-current-locks nsslapd-db-max-locks
For details about the monitoring attributes, see the descriptions in the Directory Server Configuration, Command, and File Reference.