[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: slapd memory leak (ITS#249)
On Thu, Aug 12, 1999 at 10:23:30AM -0700, Kurt D. Zeilenga wrote:
> At 07:08 AM 8/12/99 GMT, dnehring@telemedia.de wrote:
> >Full_Name: Dirk Nehring
> >Version: 1.2.5
> >OS: Solaris 2.6/Sparc
> >URL:
> >Submission from: (NULL) (194.174.252.46)
> >
> >
> >OpenLDAP is compiled with egcs-1.0.3, libdb-2.7.5 and
> >
> >CFLAGS="-s -O3 -D_REENTRANT" ./configure --enable-shared --enable-cldap
> >--with-ldbm-db2 --with-threads=lwp
>
> Don't use LWP. On some Solaris systems, LWP doesn't reclaim detached
> threads. Use --with-threads=posix instead.
>
> (BTW, to force db2 use "--with-ldbm-api=db2".
Doesn't work (Sun/SPARC Solaris 2.6 with egcs 1.0.3):
CFLAGS="-s -O3 -D_REENTRANT" ./configure --enable-shared --enable-cldap --with-ldbm-api=db2 --with-threads=posix
[...]
checking for sched.h... yes
checking POSIX thread version... final
checking for LinuxThreads... no
checking for pthread_create... yes
checking for sched_yield... no
checking for pthread_yield... no
checking for sched_yield in -lrt... no
checking for thr_yield... yes
checking for pthread_kill... yes
checking for pthread_detach with <pthread.h>... yes
checking for pthread_setconcurrency... no
checking for pthread_getconcurrency... no
checking for thr_setconcurrency... yes
checking for thr_getconcurrency... yes
checking if pthread_create() works... no
configure: error: pthread.h and pthread_create are not compatible
>
> >My database is about 70,000 entries big. After modifying all entries with
> >ldapmodify,
> >slapd leaks memory and dies with:
>
> It likely just growing the cache.
>
> >Aug 11 19:34:16 xxxxx slapd[22032]: calloc of 2048 elems of 4 bytes failed
>
> Reduce "cachesize" to fit within your available memory or make
> more memory available to slapd.
Hhmh, the machine has 768 MByte physical memory and 1.2 GByte of
swap. My slapd.conf values are:
cachesize 100000
dbcachesize 15000000
dbcachenowsync
sizelimit 1000000
Are this really too high values?
Dirk
--
Dirk Nehring | Phone: +49 5241 80-1560
Telemedia GmbH & Co. KG | Fax: +49 5241 80-9518
Carl-Bertelsmann-Str. 161 I | EMail: dnehring@telemedia.de
33311 Gütersloh |