lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: potential memory leak when using RAMDirectory ,CloseableThreadLocal and a thread pool .
Date Fri, 04 Jan 2013 13:50:51 GMT
Thanks for bringing closure Alon.

In 3.0.3 each thread had a private terms dict cache, so that explains
the high per-thread RAM usage.  This was fixed at some 3.x release ...
so we won't be fixing 3.0.3 at this point.

Mike McCandless

http://blog.mikemccandless.com

On Fri, Jan 4, 2013 at 8:29 AM, Alon Muchnick <alon@datonics.com> wrote:
> Robert you were absolutely right , we had a problem with our deployment
> script and the Lucune Jars were not updated to 3.6.2 , they remained 3.0.3
> ...
>
> after deploying the application again with the updated jars , the memory
> leak is gone !
>  (although i do see a lot more gc activity on the YoungGen after the
> upgrade,i will need to investigate it further )
>
> Mike thank you very much for the help as well , if you are still interested
> on finding out what took the RAM in 3.0.3 version,
> it looks like all the "org.apache.lucene.util.cache.SimpleLRUCache$1" values
> in the weak hash map (also attached a screen shot).
> if you like i can upload the full heap dump to some FTP.
>
> thanks again .
>
> Alon
>
>
>
> On Thu, Jan 3, 2013 at 11:36 PM, Robert Muir <rcmuir@gmail.com> wrote:
>>
>> On Thu, Jan 3, 2013 at 12:16 PM, Alon Muchnick <alon@datonics.com> wrote:
>>
>> > value ---- org.apache.lucene.index.TermInfosReader$ThreadResources --->
>> >
>> > termInfoCache  |org.apache.lucene.util.cache.SimpleLRUCache
>> > termEnum       |org.apache.lucene.index.SegmentTermEnum
>> >
>>
>> You aren't using lucene 3.6.2 if you have these.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message