Re: OutOfMemory Error while searching Index - Help Appreciated.

2007-04-11 Thread Lokeya
It is using the default size allocated by the OS, which I don't have any idea how much exactly. But when I use the -Xmx1024m and run this is not occuring. Also I make some change in that loop now keeping only the Document hitDoc = hits.doc(i); line and thats where it starts throwing error. But I

Re: OutOfMemory Error while searching Index - Help Appreciated.

2007-04-11 Thread Erick Erickson
That certainly seems odd. How much memory are you allocating your JVM? Erick On 4/11/07, Lokeya <[EMAIL PROTECTED]> wrote: I have gone through the mailing list in search of posts for this error. Though there are many, I feel my problem is little different from that and like to get some advice

Re: OutOfMemory error when searching

2005-08-19 Thread Fredrik
Sorry about the previous stack trace -- that was a wild goose-chase. Here is the real culprit: at org.apache.lucene.index.SegmentTermEnum.growBuffer(SegmentTermEnum.java(Compiled Code)) at org.apache.lucene.index.SegmentTermEnum.readTerm(SegmentTermEnum.java(Compiled Code)) at org.apache.lucen

Re: OutOfMemory error when searching

2005-08-19 Thread Volodymyr Bychkoviak
] Sent: 18 August 2005 19:09 To: java-user@lucene.apache.org Subject: Re: OutOfMemory error when searching Fredrik wrote: Opening the index with Luke, I can see the following: Number of fields: 17 Number of documents: 1165726 Number of terms: 6721726 The size of the index is approx 5,3 GB. Lucene

RE: OutOfMemory error when searching

2005-08-19 Thread Peter Gelderbloem
the IndexSearcher in this situation? Peter -Original Message- From: Doug Cutting [mailto:[EMAIL PROTECTED] Sent: 18 August 2005 19:09 To: java-user@lucene.apache.org Subject: Re: OutOfMemory error when searching Fredrik wrote: > Opening the index with Luke, I can see the follow

Re: OutOfMemory error when searching

2005-08-18 Thread Doug Cutting
Fredrik wrote: Opening the index with Luke, I can see the following: Number of fields: 17 Number of documents: 1165726 Number of terms: 6721726 The size of the index is approx 5,3 GB. Lucene version is 1.4.3. The index contains Norwegian terms, but lots of inline HTML, etc is probably increasin

RE: OUTOFMEMORY ERROR

2005-07-06 Thread Tony Schwartz
Yes, you need to use a single searcher instead of creating one each time. Tony Schwartz [EMAIL PROTECTED] "We're going to need a lot more cowbell." -Original Message- From: MariLuz Elola [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 06, 2005 1:26 PM To: java-user@lucene.apache.org Subj