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

Re: OpenLDAP v1.2.11 && SleepyCatDB v2.7.7



> >>>>> "Randy" == Randy Kunkee <kunkee@neosoft.com> writes:
> 
>     >> I compiled against Sleepycat according to some information on
>     >> the OpenLDAP site. This setup worked PERFECT on two machines,
>     >> but on one I get
>     [...]
>     >> What might I have missed?
> 
>     Randy> What is your dbcachesize configuration value, and your
>     Randy> memory ulimit ("ulimit -a" in bash)?
> 
> Shouldn't be a problem... Granted, on the two machines where it works,
> I don't have the dbcachesize set, but using defaults. 
> 
> ----- s n i p -----
> donald.pts/2# grep dbcachesize /etc/openldap/slapd.conf
> dbcachesize     1000000000

Holy sh*t batman, that's a gigabyte (or close enough)!  That's definitely
not the default, and slapd will try to allocate that amount of storage for
*each* index file it opens.  I don't care what your ulimit says.  Since
you didn't mention you were working in a supercomputer lab, you are probably
running out of virtual memory, exceeding your swap space, or something
like that.

> donald.pts/2# ulimit -a
> core file size (blocks)     0
> data seg size (kbytes)      unlimited
> file size (blocks)          unlimited
> max locked memory (kbytes)  unlimited
> max memory size (kbytes)    unlimited
> open files                  1024
> pipe size (512 bytes)       8
> stack size (kbytes)         8192
> cpu time (seconds)          unlimited
> max user processes          256
> virtual memory (kbytes)     unlimited
> donald.pts/2# cat /proc/sys/fs/file-max 
> 16384
> donald.pts/2# cat /proc/sys/fs/file-nr 
> 5569    4805    16384
> ----- s n i p -----
>