[Pkg-openldap-devel] Bug#519511: Bug#519511: slapd uses too much memory

Antonis Christofides anthony at itia.ntua.gr
Tue Mar 17 13:05:28 UTC 2009


I think I discovered what triggered the problem. For some reason,
after the upgrade to lenny, some of the files had wrong permissions.
Here is the listing:

-rw-r--r-- 1 openldap openldap 4.0K 2009-03-17 14:38 alock
-rw------- 1 root     root      16K 2009-03-11 11:10 cn.bdb
-rw------- 1 openldap openldap 8.0K 2009-03-17 14:38 __db.001
-rw------- 1 openldap openldap 2.6M 2009-03-17 14:38 __db.002
-rw------- 1 openldap openldap  96K 2009-03-17 14:38 __db.003
-rw------- 1 openldap openldap 552K 2009-03-17 14:38 __db.004
-rw------- 1 openldap openldap  24K 2009-03-17 14:38 __db.005
-rw-r--r-- 1 openldap openldap   96 2009-03-11 11:04 DB_CONFIG
-rw------- 1 openldap openldap  84K 2009-03-17 14:38 dn2id.bdb
-rw------- 1 root     root      72K 2009-03-11 11:10 givenName.bdb
-rw------- 1 openldap openldap 576K 2009-03-17 14:38 id2entry.bdb
-rw------- 1 openldap openldap 3.6M 2009-03-17 14:38 log.0000000001
-rw------- 1 root     root     128K 2009-03-11 11:10 mail.bdb
-rw------- 1 openldap openldap  52K 2009-03-17 14:38 objectClass.bdb
-rw------- 1 root     root     8.0K 2009-03-11 11:10 ou.bdb
-rw------- 1 root     root      80K 2009-03-11 11:10 sn.bdb
-rw------- 1 root     root      16K 2009-03-11 11:10 uid.bdb

I understand that the files should have been owned by
openldap:openldap, but instead some of the files, as you can see, were
owned by root:root. When I changed the ownership of those files and
restarted slapd, the memory problem does not appear any more. I run
the test ldapsearch command 100 thousand times, and the virtual memory
size has been 62508 bytes all along. The resident memory size
increased from about 7900 bytes to 8200 bytes, but I guess this must
be normal (and may be unrelated to the repeated search test - could be
other lookups that are being cached).
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: slapd.conf
Url: http://lists.alioth.debian.org/pipermail/pkg-openldap-devel/attachments/20090317/41ef4dc2/attachment.txt 


More information about the Pkg-openldap-devel mailing list