lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy33 <>
Subject Re: Lucene Memory Leak
Date Tue, 02 Sep 2008 20:45:24 GMT

As stated in my original message, I am closing the IndexSearcher elsewhere. I
don't close it in the method I copied because otherwise I lose access to the
Hits that come back. 

You should really close the IndexSearcher rather than the directory.

Andy33 wrote:
> I have a memory leak in my lucene search code. I am able to run a few
> queries
> fine, but I eventually run out of memory. Please note that I do close and
> set to null the ivIndexSearcher object elsewhere. Here is the code I am
> using... 

View this message in context:
Sent from the Lucene - Java Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message