[Date Prev][Date Next] [Chronological] [Thread] [Top]

memory leak in back-meta (ITS#2687)

Full_Name: Michael Mutschler
Version: 2.1.22
OS: debian linux 2.4.20test
URL: ftp://ftp.openldap.org/incoming/Michael-Mutschler-030818.tgz
Submission from: (NULL) (

Making binds to the rewrite-url consumes memory. The slapd-process on the
linux-machine is constantly growing.

I configured ldap to use "dc=eggs,dc=trustsec,dc=de" with bdb,
and a rewrite-rule with back-meta from "dc=spam,dc=eggs" to the local 
"dc=eggs,dc=trustsec,dc=de" with the following configuration:

database        bdb
suffix          "dc=eggs,dc=trustsec,dc=de"
rootdn "cn=admin,dc=eggs,dc=trustsec,dc=de"
rootpw admin

database meta
suffix          "dc=spam,dc=eggs"
lastmod off
uri "ldap:///dc=spam,dc=eggs";
rewriteEngine on
rewriteContext default
rewriteRule "(.*)dc=spam,dc=eggs" "%1dc=eggs,dc=trustsec,dc=de" "@"
rewriteContext searchResult
rewriteRule "(.*)dc=eggs,dc=trustsec,dc=de" "%1dc=spam,dc=eggs" "@"

When making many bind-Requests to "dc=spam,dc=eggs", the slapd-process is
constantly growing. After 80000 binds, the process increased from 3.5MB to

Although I might have configured something wrong, The process should not grow
that big. Making the binds directly to the bdb does not cause the process to