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

Reply via email to