Issue Details (XML | Word | Printable)

Key: DIRSERVER-681
Type: Bug Bug
Status: Closed Closed
Resolution: Invalid
Priority: Blocker Blocker
Assignee: Unassigned
Reporter: Emmanuel Lecharny
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Directory ApacheDS

Memory leak in ADS ?

Created: 23/Jul/06 08:30 AM   Updated: 27/Jul/06 09:46 PM
Return to search
Component/s: None
Affects Version/s: 1.0-RC3
Fix Version/s: None

Time Tracking:
Not Specified

Resolution Date: 27/Jul/06 09:46 PM


 Description  « Hide
When doing thousands of searches, at a point, the memory get exhausted, and the server stop to deliver responses.

The first bet is that we have a memory leak somwhere. Using yourkit shows that the heap increase continuously while search requests are being processed.

However, I have done an extensive test whith all cache set to 1, and launched an heavy test (100 000 random search requests over a 10 000 entries base), with a Heap size set to 25 M, and everything is running fast (even if it's slow).

So the second bet would be that cache setting is to big in regard to the allocated memory, and we just exhaust memory using too much cache.

I will try to do a 12H test with 1 sized cache tonite, and a 48H test with 100 sized cache on tuesday and wenesday, to check which hypothese is the good one (hope the second will be it :).

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Emmanuel Lecharny added a comment - 24/Jul/06 06:02 AM
The server is now running for more than 7 hours, with 5 clients searching for random entries. The cache has been set to standard value.

So far, it's seems to be perfectly ok. We may not have any memory leak, or at least not an important one.

The test will be running 11 more hours.

Emmanuel Lecharny added a comment - 27/Jul/06 09:44 PM
I have made a long test ( more than 27 hours, doing 900 searches requests per socond for a total of 10 614 000 random searches requests, on a server with only 256 Mbyte.

Everything went fine, except that my computer overheated and rebooted itself on wednesday when the temperature cimbed up to 37°C outside in Paris ...

No memory leak.

Let's close the issue for the moment.

Emmanuel Lecharny added a comment - 27/Jul/06 09:45 PM
Seems to be a false alarm. The memory should be carrefully set when using huge caches.

Emmanuel Lecharny made changes - 27/Jul/06 09:45 PM
Field Original Value New Value
Status Open [ 1 ] Closed [ 6 ]
Resolution Fixed [ 1 ]
Emmanuel Lecharny added a comment - 27/Jul/06 09:45 PM
It was not a fix ...

Emmanuel Lecharny made changes - 27/Jul/06 09:45 PM
Status Closed [ 6 ] Reopened [ 4 ]
Resolution Fixed [ 1 ]
Emmanuel Lecharny added a comment - 27/Jul/06 09:46 PM
Ok, now, the definitive status is correct

Emmanuel Lecharny made changes - 27/Jul/06 09:46 PM
Status Reopened [ 4 ] Closed [ 6 ]
Resolution Invalid [ 6 ]