[Pkg-openldap-devel] Bug#725091: Bug#725091: slapd with memory leak in active sync

Ryan Tandy ryan at nardis.ca
Thu Oct 10 22:44:06 UTC 2013


Hi Thomas,

Sorry it took me so long to get back to you.

I think the problem is that your slapd.conf uses LDAP Sync replication
and not delta-syncrepl. I missed that at first because you have an
accesslog database configured, so I assumed you were using
delta-syncrepl, but your syncrepl consumers are actually not
configured for it.

I created a basic provider-consumer setup (configuration files
attached) and the memory usage was low and stable. When I changed from
delta-syncrepl back to LDAP Sync, the memory usage climbed quickly. I
reproduced the same behaviour with recent (2.4.36) code from upstream,
so it's not a Debian-specific problem.

As per slapd.conf(5), the change to switch from delta-syncrepl back to
LDAP Sync is to remove the logbase, logfilter, and syncdata attributes
from the syncrepl configuration. Reversing that change, I think it
might help if you added those three attributes to your syncrepl
configurations. See the OpenLDAP admin guide and slapd.conf(5) for
details. Your syncprov overlay also doesn't have a syncprov-checkpoint
directive, which is optional but useful in case of a crash or unclean
shutdown.

The reason LDAP Sync is not efficient for your use case is that it
transfers entire entries and not just changed attributes. So, if you
add or remove a member from a group, the entire list of members for
that group has to be transferred, which is of course pretty bad when
your groups have a lot of members. Delta-syncrepl is better because it
only transfers changed attributes.

Does this help?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: slapd-consumer.conf
Type: application/octet-stream
Size: 688 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-openldap-devel/attachments/20131010/7d2ee6f1/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: slapd-provider.conf
Type: application/octet-stream
Size: 981 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-openldap-devel/attachments/20131010/7d2ee6f1/attachment-0001.obj>


More information about the Pkg-openldap-devel mailing list