[Date Prev][Date Next]
Re: TLS client certificates and memory use
- To: firstname.lastname@example.org
- Subject: Re: TLS client certificates and memory use
- From: David Hawes <email@example.com>
- Date: Tue, 02 Dec 2008 11:11:51 -0500
- In-reply-to: <492CDC80.firstname.lastname@example.org>
- References: <492C9754.email@example.com> <90DB5BC1326E6D629F63FFAA@[192.168.1.199]> <492CDC80.firstname.lastname@example.org>
- User-agent: Thunderbird 22.214.171.124 (Macintosh/20081105)
David Hawes wrote:
> Quanah Gibson-Mount wrote:
>> --On Tuesday, November 25, 2008 7:24 PM -0500 David Hawes
>> <email@example.com> wrote:
>>> I was doing some testing and noticed that when I search for entries
>>> using TLS, significantly more memory is used when using client
>>> certificates than without them. In fact, memory will eventually be
>>> exhausted if the searches are performed indefinitely. Without using
>>> them, memory use stays (around) the same value.
>>> I stripped down the config, removed all ACLs except one (to disallow
>>> access), and started with an empty database, and get the same results.
>>> I've noticed this in 2.4.11, 2.4.12, and 2.4.13 with OpenSSL 0.9.8i. I
>>> do not notice it with an old 2.3.39 instance.
>>> Has anyone noticed anything similar, or can anyone reproduce this?
>> Have you run OpenLDAP in this situation under valgrind to see where the
>> leak is occurring?
> I have not, but I intend to do that next. I'll be sure to post the results.
valgrind seems to indicate that the leak occurs in OpenSSL (6,214 bytes
are lost each connection with TLS and client certificates).
That said, I find it odd that 2.3.43, linked against the same OpenSSL,
does not show this leak. 2.4.6 and up (though I did not test .7-.10) do
show the leak. I'm still trying to explain that.