我正在尝试从大约有 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 数据库的值?