Re: ThreadLocal in SegmentReader

2008-07-11 Thread Roman Puchkovskiy
- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > > - &

Re: ThreadLocal in SegmentReader

2008-07-11 Thread Michael McCandless
After discussing this on java-dev: http://mail-archives.apache.org/mod_mbox/lucene-java-dev/200807.mbox/[EMAIL PROTECTED] it seems that this is not in fact a leak but rather a delayed GC issue. The objects are eventually freed, on Sun 1.4, 1.5 and 1.6. When a ThreadLocal instance beco

Re: ThreadLocal in SegmentReader

2008-07-07 Thread Michael McCandless
Ugh! I'll move this to java-dev to brainstorm fixes... Mike Yonik Seeley wrote: On Mon, Jul 7, 2008 at 2:43 PM, Michael McCandless <[EMAIL PROTECTED]> wrote: So now I'm confused: the SegmentReader itself should no longer be reachable, assuming you are not holding any references to your In

Re: ThreadLocal in SegmentReader

2008-07-07 Thread Yonik Seeley
On Mon, Jul 7, 2008 at 2:43 PM, Michael McCandless <[EMAIL PROTECTED]> wrote: > So now I'm confused: the SegmentReader itself should no longer be reachable, > assuming you are not holding any references to your IndexReader. > > Which means the ThreadLocal instance should no longer be reachable. It

Re: ThreadLocal in SegmentReader

2008-07-07 Thread Michael McCandless
e in lucene-2.2.0 and lucene-2.3.2. Thanks in advance. -- View this message in context: http://www.nabble.com/ThreadLocal-in-SegmentReader-tp18306230p18306230.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. ---

Re: ThreadLocal in SegmentReader

2008-07-07 Thread Roman Puchkovskiy
er) then the >>> ThreadLocal value remains, but that value is a shallow clone of the >>> original TermVectorsReader and should not be consuming that much RAM >>> per thread. >>> >>> So I think it's OK? >>> >>> Mike >>> &

Re: ThreadLocal in SegmentReader

2008-07-07 Thread Roman Puchkovskiy
;>> Mike >>> >>> Roman Puchkovskiy wrote: >>> >>>> >>>> Hi. >>>> >>>> There's a ThreadLocal field in SegmentReader (it's called >>>> termVectorsLocal). >>>> Some value is put to it, but

Re: ThreadLocal in SegmentReader

2008-07-07 Thread Michael McCandless
nd lucene-2.3.2. Thanks in advance. -- View this message in context: http://www.nabble.com/ThreadLocal-in-SegmentReader-tp18306230p18306230.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. - To unsubscrib

Re: ThreadLocal in SegmentReader

2008-07-07 Thread Roman Puchkovskiy
er (it's called >> termVectorsLocal). >> Some value is put to it, but it's never cleared. >> Is it ok? It looks like sometimes this behavior may lead to leaks. >> >> This is the same in lucene-2.2.0 and lucene-2.3.2. >> >> Thanks in advance. >

Re: ThreadLocal in SegmentReader

2008-07-07 Thread Michael McCandless
the same in lucene-2.2.0 and lucene-2.3.2. Thanks in advance. -- View this message in context: http://www.nabble.com/ThreadLocal-in-SegmentReader-tp18306230p18306230.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. ---

ThreadLocal in SegmentReader

2008-07-06 Thread Roman Puchkovskiy
this message in context: http://www.nabble.com/ThreadLocal-in-SegmentReader-tp18306230p18306230.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c