lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Wettin <>
Subject Re: InstantiatedIndex Memory required
Date Wed, 13 May 2009 17:58:21 GMT
Hi Ravichandra,

this is a question better fitted the java-users maillinglist. On this  
list we talk about the development of the Lucene API rather than how  
to use it.

To answer your question, there is no simple formula that says how much  
RAM an InstantiatedIndex will consume given the FSDirectory or  
RAMDirectory size. Your index is however probably way too large for  
when InstantiatedIndex is considerably faster than RAMDirecotry. There  
is a diagram in the Javadocs that shows the speed on a Reuters index  
as it grows in size:

As milage varies on term saturation you should still try benchmarking  
and see if there is anything to be gained. Try increasing Xmx to  
whatever you have, you can also take a look at -XX:+AggressiveHeap.


12 maj 2009 kl. 18.43 skrev thiruvee:

> Hi
> So far I am using RAMDirectory for my indexes. To meet the SLA of our
> project, i thought of using InstantiatedIndex. But when I used that,  
> i am
> not able to get any out put from that and its throwing out of memory  
> error.
> What is the ratio between Index size and memory size, when using
> InstantiatedIndex.
> Here are my index details:
> Index size : 200mB
> RAM Size : 1 GB
> If i try with a small test index of size 100KB, its working.
> Please help me with this.
> Thanks
> Ravichandra
> -- 
> View this message in context:
> Sent from the Lucene - Java Developer mailing list archive at  
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message