- 论坛徽章:
- 0
|
写给所有OpenLDAP不能正常启动的人
Assuming you are using BDB 4.2.52 + 2 patches.
I am not sure about OpenLDAP windows version, for UNIX/Linux versions to properly operate, you need a DB_CONFIG in LDAP data directory.
# cat /var/lib/ldap/DB_CONFIG
set_cachesize 0 209715200 0
set_lg_regionmax 131072
set_lg_bsize 2097152
(This is for a RHEL/AS3 server with 2GB RAM, 4-CPU)
Search Google for "DB_CONFIG" to understand more.
Also you should put some basic performance tunning parameters in slapd.conf, the following is an example:
# Performance tuning directives
sizelimit 5000
threads 8
idletimeout 14400
cachesize 10000
checkpoint 256 15
Gary |
|