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

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



rlvcosta@yahoo.com wrote:
> Howard,
>
> I have the always the same DB_CONFIG file as below :
>
> set_cachesize 0 52428800 1
>
> set_flags DB_LOG_AUTOREMOVE
>
> set_lg_regionmax 1048576
> set_lg_max 10485760
> set_lg_bsize 2097152
>
> set_tmp_dir /var/tmp
>
> I just removed the comment lines so it fits better on screen.
>
> About versions I have :
>
> [root@brtldp12 yum.repos.d]# /usr/libexec/slapd  -V
> @(#) $OpenLDAP: slapd 2.4.13 (Jan 22 2009 02:28:12) $
>          root@brtldp12:/root/openldap-2.4.13/servers/slapd
>
> [root@brtldp12 yum.repos.d]# db_verify -V
> Berkeley DB 4.7.25: (May 15, 2008)
>
> About the man pages I have :
>
> [root@brtldp12 yum.repos.d]# ll /usr/man/man8/slapd.8.gz
> -rw-r--r-- 1 root root 4392 Jan 22 03:28 /usr/man/man8/slapd.8.gz
>
> [root@brtldp12 yum.repos.d]# ll /usr/man/man5/slapd-bdb.5.gz
> -rw-r--r-- 1 root root 4089 Jan 22 03:28 /usr/man/man5/slapd-bdb.5.gz
>
> I was expecting to find information about dncachesize in slapd-bdb but there isn't nothing there.

According to CVS the documentation was added in August 2007.

It's been online for quite a long time as well.
http://www.openldap.org/software/man.cgi?query=slapd-bdb&sektion=5&apropos=0&manpath=OpenLDAP+2.4-Release

Another point is that the cache configurations are based on a specific number 
of items, and not on the size of each item in bytes. If you have particularly 
large entries or long DNs then you'll have greater memory use as well.
-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/