lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Schwartz" <>
Subject Re: OutOfMemoryError on addIndexes()
Date Fri, 19 Aug 2005 10:42:55 GMT
Aha, it's not initially clear, but after looking at it more closely, I see how it works
now.  This is very good to know.

Tony Schwartz

> Tony Schwartz wrote:
>> What about the TermInfosReader class?  It appears to read the entire term set for
>> segment into 3 arrays.  Am I seeing double on this one?
>> p.s.  I am looking at the current sources.
>> see TermInfosReader.ensureIndexIsRead();
> The index only has 1/128 of the terms, by default.  You're right however
> that there are three arrays, not just one, I'd forgotten that.  So, with
> 6M terms you'd have a 50k term index.  Two 200kB arrays (pointer) and
> one 400kB array (long) would be allocated, plus the data to fill them.
> So the total might be closer to a few MB.
> Doug
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message