![如何更改 OpenLDAP bdb 的最大锁数?](https://linux22.com/image/721988/%E5%A6%82%E4%BD%95%E6%9B%B4%E6%94%B9%20OpenLDAP%20bdb%20%E7%9A%84%E6%9C%80%E5%A4%A7%E9%94%81%E6%95%B0%EF%BC%9F.png)
我正在尝试从大约有 50,000 名成员的 LDAP 组中删除 memberUid。它失败并显示以下错误消息:
5afc4c76 bdb(dc=example,dc=com): Lock table is out of available lock entries
5afc4c76 => bdb_idl_insert_key: c_get failed: Cannot allocate memory (12)
bdb 限制为 1500 个锁:
# db_stat -h /var/lib/ldap/ -c | grep "Maximum number of locks"
1500 Maximum number of locks possible
1514 Maximum number of locks at any one time
14 Maximum number of locks in any one bucket
476 Maximum number of locks stolen by for an empty partition
57 Maximum number of locks stolen for any one partition
我尝试DB_CONFIG
按如下方式编辑文件并重新启动slapd
:
# cat /var/lib/ldap/DB_CONFIG
set_cachesize 0 314572800 0
set_lk_max_objects 15000
set_lk_max_locks 15000
set_lk_max_lockers 15000
不幸的是,这并没有将活动值从 改变1500
为15000
。
如何更改set_lk_max_locks
OpenLDAP bdb 数据库的值?