LDAP实例异常停止日志提示虚拟内存virtual memory不足

[05/Oct/2014:20:50:37 +0800] - ERROR<5135> - Resource Limit - conn=-1 op=-1 msgId=-1 - Memory allocation error calloc of 9420 bytes failed; errno 12
The server has probably allocated all available virtual memory. To solve this problem, make more virtual memory available to your server, or reduce the size of the server's `Maximum Entries in Cache' (cachesize) or `Maximum DB Cache Size' (dbcachesize) parameters.
can't recover; calling exit(1)

==================

导致此问题的原因通常不是主机物理内存不足,而是由于该实例的性能参数:数据库缓存和条目缓存设置不合理而造成的,这个需要根据实际的生产环境进行调整,而且如果有多个LDAP实例进行数据同步,每个LDAP实例的性能参数可不一致。如某生产环境性能参数如下:

LDAP-INSTANCE1

数据库缓存(全局):768

初始化缓存(全局):768

dc=ICBC:1296

条目缓存:无限

==========

LDAP-INSTANCE2

数据库缓存(全局):256

初始化缓存(全局):256

dc=ICBC:1296

条目缓存:无限

调整性能参数,可在DSCC控制台分别对每一个LDAP实例进行调整。调整后,需要重启实例才生效。