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

Re: (ITS#4010) out of memory when slapcat over 16m entries



I think we need more information about your configuration, which backend 
are you using? How large is the total database, how much RAM is 
available in the system? I don't see any leaks running 2.2.28 slapcat 
with back-bdb.

lihaitao@kingsoft.com wrote:
> Full_Name: Hite Lee
> Version: 2.2.28
> OS: Redhat Linux AS3
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (210.76.108.158)
>
>
> There are about 27m entries in our Openldap. I want to use slapcat to output
> them all. But when output 16,893,596 entries, slapcat crash because of malloc
> failure. The error output list below:
>
> # id=0101c698
> # id=0101c699
> # id=0101c69a
> # id=0101c69b
> # id=0101c69c
> slapcat: ch_malloc.c:62: ch_malloc: Assertion `0' failed.
>
> I try to change the slapcat.c:115 as bwlow to avoid using cursor, but nothing
> happend. 
> before changed:
> for ( id = be->be_entry_first( be )
> 		id != NOID;
> 		id = be->be_entry_next( be ) )
>
> after changed:
> for ( id = be->be_entry_first( be )
> 		id != NOID;
> 		id++ )
>
> There is a memory leak somewhere, I think. But I cannot catch it. Thanks to any
> advice or help.
>
>
>   


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