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

RE: memory leak on solaris 7?

We weren't trying to isolate or track a memory leak, or even memory usage.
We just noticed that vmstat showed decreasing amounts of free memory. We
almost never recovered any memory over a period of hours. When we restarted
slapd, the memory was freed and started leaking 8 bytes per minute again.

We're not using testing software to test the OpenLDAP servers in isolation.
Rather, we're using OpenSTA to do load tests on a web application. The web
app does lots of lookups to validate logins. These lookups do _not_ seem to
be related to any leaks. E.g. when we stop the load test, the leak still
However, whenever the web app is alive (ie regardless of whether it's
handling any requests), it does regular harder "keepalives" in order to work
around a bug in maintaining persistent pooled socket connections that we
haven't isolated yet. This keepalive is the dummy search operation that I
described below.
When I have time, I'll change the operation and see if the "keepalive" is
causing a leak. I can also run a profiler, etc.

> -----Original Message-----
> From: Killian, John (Contractor) [mailto:KillianJ@ncr.disa.mil]
> Sent: Monday, November 05, 2001 11:07 AM
> To: 'oberwetter, josh'
> Subject: RE: memory leak on solaris 7?
> Hi Josh,
> I'm curiou...do you use certain UNIX commands or utilities to 
> display and
> track the memory leakage?
> Did you use any particular testing software to do the load 
> testing which
> showed you the memory leakge rate?
> Thanks,
> John Killian
> Booz | Allen | Hamilton
> DISA API - 1
> PKI Planning
> (703) 882-1580
> DSN 381-1580
> -----Original Message-----
> From: oberwetter, josh [mailto:joberwetter@grownetwork.com]
> Sent: Monday, November 05, 2001 10:39 AM
> To: openldap-software@OpenLDAP.org
> Subject: memory leak on solaris 7?
> I did some load tests on OpenLDAP 2.0.15 today, and I think I (or my
> computer) experienced a slow memory leak. I don't have time 
> to run OpenLDAP
> in a profiler now, but does the following sound familiar to anybody?
> Here is my OS info & patch level:
> SunOS 5.7 Generic_106541-17 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
> (yes, I know that I'm a little behind...)
> The symptom is that I lose a chunk of 8 bytes of memory about 
> every minute.
> There's nothing else running on this machine, and when I 
> restart OpenLDAP
> all of the memory is freed, so the leak is related to OpenLDAP.
> The only thing that _I_ do every minute is the following. 
> About every minute
> a test thread is scheduled to do a single level search with a 
> filter of
> objectclass=device. The only peculiar thing about this search 
> is that I know
> that it should return 0 results (don't ask why I'm doing 
> this...it's a short
> term hack around another problem). Other regular operations 
> such as lookups
> don't seem to cause a memory leak.
> As soon as I have time, I'll work on repro-ing the problem. 
> But please let
> me know if this highly regular memory leak sounds familiar.