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

Memory Leak (ITS#269)



Full_Name: Aaron C. Du Mar
Version: 1.3.6 (August 4, 1999 stable)
OS: Linux 2.0.34
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (128.194.233.224)


I've noticed the memory leak on a couple of machines here in our Physics
department.
It seems that over time, the %mem usage grows as search requests are sent to 
it.
What makes it particulary bad is that we use OpenLDAP to handle all of our
email
aliases for sendmail, so we've lost a lot of email.

Anyway, the set up is pretty much the default, and I've set the cachesize and
dbcachesize to 0 to try and eliminate that.  If it makes any difference, the
mail
alias machines are replicas of a master machine which doesn't have anything to
do 
with mail, just slurps!

We can reproduce the problem just by using ldapsearch as follows:

@data = `ldapsearch -h\"our_machine.tamu.edu\" -b\"ou=Department of
Physics, o=Texas A&M University, st=TX, c=US\" \"cn=*\" uid mail`;

and the memory will increase about 24K (or 8K per instance of slapd).  

We have another machine that I compiled --without-threads, and it will gain
8K per search request (only one instance, though).

I could compile the other machine --without-threads which would allow me to 
keep it running 3 times longer, but that is not the long term solution (or the 
elegant one).

If I need to supply any more information, please let me know.