lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilkay polat <>
Subject Re: Out of memory problem in search
Date Wed, 14 Jul 2010 12:54:45 GMT
We have hardware restrictions(Max RAM can be  8GB). So, unfortunately,  increasing memory
can not be option for us for today's situation. 

Yes, as you said that problem is faced when goes to last pages of search screen because of
using search method which is find top n records. In other way, this is meaning "searching
all the thinngs returns all". 

I am now researching whether there is a way which consumes time instead of memory in this
search mechanism in lucene? Any other ideas? 


--- On Wed, 7/14/10, findbestopensource <> wrote:

From: findbestopensource <>
Subject: Re: Out of memory problem in search
Date: Wednesday, July 14, 2010, 2:59 PM

Certainly it will. Either you need to increase your memory OR refine your
query. Eventhough you display paginated result. The first couple of pages
will display fine and going towards last may face problem. This is because,
200,000 objects is created and iterated, 190,900 objects are skipped and
last100 objects are returned. The memory is consumed in creating these


On Wed, Jul 14, 2010 at 4:14 PM, ilkay polat <> wrote:

> Hello Friends;
> Recently, I have problem with lucene search - memory problem on the basis
> that indexed file is so big. (I have indexed some kinds of information and
> this indexed file's size is nearly more than 40 gigabyte. )
> I search the lucene indexed file with
>, null, offset + limit, new
> Sort(new SortField("time", SortField.LONG, true)));
> (This provides to find (offset + limit) records to back.)
> I use searching by range. For example, in web page I firstly search records
> which are in [0, 100] range then second page [100, 200]
> I have nearly 200,000 records at all. When I go to last page which means
> records between 200,000 -100, 200,0, there is a memory problem(I have 4gb
> ram on running machine) in jvm( out of memory error).
> Is there a way to overcome this memory problem?
> Thanks
> --
> ilkay POLAT   Software Engineer
>  Gsm : (+90) 532 542 36 71
>  E-mail :

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message