[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Possible Memory Leak
Title: Message
Hi,
We've been testing
OpenLDAP under fluctuating load over a period of days, and we're consistently
seeing growth in the heap.
In general, it's
growing in 8k "anonymous" chunks as reported by pmap.
We are running an
older version of OpenLDAP 2.1.6, but we did also test against version 2.1.22 and
saw the same results.
The slapd process is
being run on Solaris 8.
I have attached 2
different memory debuggers to the process, and neither of the debuggers detect a
leak.
I used the Sun GC
Monitor memory debug tool and Workshop.
Here are some data points from our first test, which ran for
about 5 days with fluctuating load:
2004-5-11@15:00:03 [6966] total Kb 20432
14704 9120 5584
2004-5-11@23:50:19 [7201] total Kb 21200
13088 6744 6344
2004-5-12@00:00:18 [7201] total Kb 21200
13096 6744 6352
2004-5-12@23:50:15 [7201] total Kb 21504
13400 6744 6656
2004-5-13@00:00:14 [7201] total Kb 21504
13400 6744 6656
2004-5-13@18:00:10 [7201] total Kb 21696
13600 6752 6848
2004-5-16@08:30:17 [7201] total Kb 22712
14608 6744 7864
2004-5-16@23:50:09 [7201] total Kb 22848
14736 6744 7992
Another test ran for
7 days under a consistent load:
total Kb 17200 16768 14520
2248
total Kb 19056 18704 14488
4216
total Kb 19104 18752 14488
4264
total Kb 19120 18768 14488
4280
total Kb 19160 18808 14488
4320
total Kb 19184 18832
14488
4344
total Kb
19192 18840 14488
4352
total Kb 19200 18848 14488
4360
total Kb 19208 18856 14488
4368
total Kb 19208 18856 14488
4368
The
requests that we are sending to the server are all very similar.
They
all retrieve only 1 entry that is approximately the same size for each
request.
I had sent another
email to the software list a few months ago and received the following message
regarding the behaviour:
"This
is normal. free() makes the memory available to the application, but not to the
OS."
While this may be
true, the system should eventually start cleaning up memory. The slapd
process is growing continually growing for more than
5 days.
Any ideas on what
this may be, how to track it down or explanations on what is causing this would
be greatly appreciated.
Sarah