Hello all,

I have a set of 11 servers setup with syncrepl, all running openldap 2.4.6:
1 syncrepl provider, and 10 consumers.


The provider is having a hard time staying up for more than 18-24 hours at a time - it will either stop responding, or just die. I'm working on getting the debug log output right before it dies, but for now, about 60% of my provider's log is filled with messages such as this:

Dec 28 15:04:15 ldapm01 slapd[10335]: slap_sl_malloc of 32 bytes failed, using ch_malloc
Dec 28 15:04:15 ldapm01 slapd[10335]: slap_sl_malloc of 56 bytes failed, using ch_malloc
Dec 28 15:04:15 ldapm01 slapd[10335]: slap_sl_malloc of 56 bytes failed, using ch_malloc

The logs are quite copious, but I haven't seen anything else indicative of an error. I've been researching for over a week, and attempting to tweak my settings, but I can't find any data on this.

Does this have anything to do with the 'searchstack' setting? I looked in the source code, and noticed that it didn't seem like a terrible error, but this is the only output I have for the time being.

Any help would be greatly appreciated, as these are production machines.
If the information I provided doesn't help, please tell me what you would need to understand the problem better.

########Provider:
database        bdb
suffix          "dc=testbox,dc=net"
directory       "/var/lib/ldap/master/"
mode            0600
cachesize       20000
idlcachesize    60000
index   objectClass     eq
index   ou      eq
index   entryCSN,entryUUID      eq
index   uid,uidNumber,gidNumber eq
idletimeout     30
overlay syncprov
syncprov-checkpoint     100 10
syncprov-sessionlog     1000
syncprov-reloadhint     TRUE
lastmod                 on


############Consumer:
database        bdb
suffix          "dc=testbox,dc=net"
directory       "/var/lib/ldap/slave/"
mode            0600
cachesize       10000
idlcachesize    30000

#### Consumer
checkpoint      512 5
index uid,uidNumber,gidNumber,member
             pres,eq
index ou,objectClass,entryCSN,entryUUID,homeDirectory,dc,contextCSN,associatedDomain,cn eq
idletimeout     30
lastmod         on

syncrepl rid=233
 provider=ldaps://ldapm01.testbox.net
 type=refreshOnly
 retry="10 100 30 +"
 interval="00:00:05:00"
 searchbase="dc=eigbox,dc=net"
 filter="(!(entryDN:dnSubtreeMatch:=ou=unwanted,ou=pub,dc=testbox,dc=net))"
 scope=sub
 attrs="*,+"
 schemachecking=off
 bindmethod=simple
 binddn="cn=sync-user,dc=testbox,dc=net"
 credentials=secret
#############

Thanks in advance!
------------------------------------------
Marcel Chastain
Senior Systems Administrator
Endurance International Group
Email: Marcel.Chastain@Gmail.com
------------------------------------------