I recently deleted about 25k entries in a specific OU. Since, the memory usage of the
slapd process has consistently stayed at 70%-75% cpu usage:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
29911 openldap 18 0 12.6g 10g 4.1g S 0 69.6 1003:25 slapd
I have also noticed that the DB files have stayed the same size - specifically one is 4gigs:
-rw------- 1 openldap openldap 4.0G Nov 30 21:18 __db.003
On a slave to this box, the file size is drastically lower:
-rw------- 1 openldap openldap 321M Dec 16 05:02 __db.003
I am assuming that the reason the CPU and memory usage is so high due to trying to keep the entire directory structure in memroy.
Is this normal behavior? Is there a way to purge the database files?
One other thing that happened was the slaves that are syncing to this server did not update the OU described above.
Any help would be great. Thanks.
|