I've got a bit of a problem. I'm using OpenLDAP in a high volume
environment using the berkeley DB back end, and what's happening is that
every few days the database gets corrupted. Searches take excrutiatingly
long to complete. Sometimes I'm able to do a slapcat (even though it
takes forever, only a few entries a second) and rebuild the ldap database
with that, other times it can get so bad, that even the slapcat fails
(hangs with no more output half way through an entry) and I have to
restore from backup and the replication log.