Hi,

We recently discovered another memory leak within Lucene.NET, that is
related to LUCENENET-358 (CloseableThreadLocal memory leak in
LocalDataStoreSlot). As it turns out, disposables weren't disposed properly.
With RavenDB, that caused memory consumption to always grow.

We ended up modifying some core files to assure proper disposal, and things
are looking better now. We are still testing, and will follow up if more
fixes will be required.

Here are the relevant diffs in our fork of Lucene.NET:

https://github.com/ayende/ravendb/commit/a5031049599968f85e733f22a1ed568c09703c30
https://github.com/ayende/ravendb/commit/bd9ca1ab154732d27985c2d237917af8bbd5fbf3

The full discussion and bug hunting is here:

http://groups.google.com/group/ravendb/browse_thread/thread/9c6340987407aece/1d86d6a61175233c

I'm also attaching a diff between our fork to the Lucene.Net_2_9_2_RC2 tag.
Will be happy to see this incorporated into 2.9.4 (and for it to be released
already...).

Itamar.

Reply via email to