[Date Prev][Date Next]
Re: (ITS#5860) slapd memeory leak under openldap 2.4
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#5860) slapd memeory leak under openldap 2.4
- From: firstname.lastname@example.org
- Date: Mon, 2 Mar 2009 07:36:43 GMT
- Auto-submitted: auto-generated (OpenLDAP-ITS)
Rodrigo Costa wrote:
> One more comment. If you take a longer time between the ldapsearches the
issue doesn't appear sometimes.
> So you need to start the first ldapsearh and like 15 seconds later start
second one. With this scenario the problem will for sure appear.
I was finally able to reproduce this issue, by running two identical searches
simultaneously on a server with more than 2 CPU cores. Given any delay between
the two search invocation, the problem did not appear.
This is now fixed in HEAD. Thanks for your help in providing data for
reproducing the issue.
> In this way we will see large chunks of memory being allocated and after
stabilizes the query get stuck returning as the issue before 16 records per
minute, or very slow and getting stuck all the time.
I should point out - the memory use is stabilized now (as it should be) but
the search performance of a configuration such as yours will be extremely poor
due to the unavoidable thrashing that such a query pattern exerts on the
cache. Setting a larger minfree can help reduce some of the contention but it
will still be much slower than normal.
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/