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

Re: (ITS#5860) slapd memeory leak under openldap 2.4

rlvcosta@yahoo.com wrote:
> Quanah,
> I just used tcmalloc but I still with the same behavior. slapd doesn't
> have  limit for the cache and then it cannot run large databases.

As a side comment, we have already documented that about 1 million entries is 
the practical limit for slapd on a 32 bit machine. Since 64 bit machines are 
so common today, making slapd perform well on a 32 bit machine is no longer a 

Also, by design, tcmalloc doesn't release freed memory back to the OS, since 
it will most likely be needed again. It's normal for the slapd process size to 
never shrink.

One thing you can check is to add a "database monitor" to your slapd 
configuration; one of the entries under cn=monitor will report the number of 
items in the back-bdb cache. Please provide this information here.

   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/