lucene-lucene-net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Jordan <robe...@gmx.net>
Subject Re: Memory leak on 2.9.2
Date Thu, 20 May 2010 10:19:41 GMT
On 20.05.2010 10:46, Robert Jordan wrote:
> On 20.05.2010 04:25, Ayende Rahien wrote:
>> With Lucene 2.9.1, if i created a new StandardAnalyzer and not close
>> it, I
>> wouldn't get a memory leak.
>> That is because of the (slow) thread local implementation.
>> The current implementation _requires_ closing StandardAnalyzer, or you
>> get a
>> pretty sever, memory laek.
>
> Can the leak be reproduced with a simple "new StandardAnalyzer()"
> statement? If not, please post a test case, if possible.

Please give this patch a try:

https://issues.apache.org/jira/secure/attachment/12445047/CloseableThreadLocal.diff

which I've attached to this issue:

https://issues.apache.org/jira/browse/LUCENENET-358

Thanks
Robert


Mime
View raw message