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

Steve Langasek vorlon at debian.org
Sat Mar 14 06:53:33 UTC 2009


On Fri, Mar 13, 2009 at 10:39:40AM +0200, Antonis Christofides wrote:
> Package: slapd
> Version: 2.4.11-1
> Severity: important

> When slapd starts on my system it consumes something like 7M of RAM
> (about 50M virtual). As time passes, it consumes more and more,
> reaching hundreds; after 24 hours it uses something like 400M or 500M.
> This is a very small LDAP database; the LDIF file is 315K.  Therefore,
> I don't see any reason for such usage. The backend is BDB, and the
> DB_CONFIG file says:

> set_cachesize 0 2097152 0
> set_lk_max_objects 1500
> set_lk_max_locks 1500
> set_lk_max_lockers 1500

Does this happen only with client activity, or does it also happen when the
server is dormant?  If the server is being actively used by clients, what's
the rate of connects/disconnects?

Can you post your slapd.conf for the system in question?

Finally, if we're leaking memory, it would probably be helpful if you could
run slapd under valgrind for a short time so that we can see where the leak
is happening.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org





More information about the Pkg-openldap-devel mailing list