Topic: Lock Problem with openldap : "Lock table is out of available locks"
My users use a lot of mailing lists through iredapd. These list can have hundreds or even thousands of recipients.
So my /var/log/openldap.log looks like this today :
Aug 25 11:35:33 smtp slapd: bdb(dc=domain,dc=tld): Lock table is out of available locks
Aug 25 11:35:33 smtp slapd: => bdb_idl_delete_key: c_get failed: Cannot allocate memory (12)
Users were trying to add recipients (600~800) to their lists but the add operation always failed. changing operations were not allowed while read operations worked.
Here is what I've done :
* /etc/init.d/ldap stop
* Add :
to /var/lib/ldap/DB_CONFIG in order to increase the max locks number supported by openldap by default.
* cd /var/lib/ldap/
* chown ldap.ldap *
* /etc/init.d/ldap start
Everything seems to work now.
Do you know how to prevent this kind of problem ?