I have a memory issue with 389-ds 1.2.5 in a CentOS 5.5 64bits 4GB ram. 

The server swaps when the server physical memory increase over 75% approx. When the swap is full the server reaches 100% of physical memory and the SO kills the ns-ldapd process.

Out of memory: Killed process 30383, UID 99, (ns-slapd).

The cache sizes are:

nsslapd-dbcachesize: 838860800
nsslapd-import-cachesize: 20000000
nsslapd-cachememsize: 125829120 (for each 26 db)

Which can be the problem?