lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Schwartz" <t...@simpleobjects.com>
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@simpleobjects.com




> Tony Schwartz wrote:
>> What about the TermInfosReader class?  It appears to read the entire term set for
the
>> 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: 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