java-user@lucene.apache.org
[Top] [All Lists]

Re: 1.4.3 and 64bit support? out of memory??

Subject: Re: 1.4.3 and 64bit support? out of memory??
From: Chris Hostetter
Date: Wed, 8 Mar 2006 11:35:39 -0800 PST
:   i am recieving the following stack trace:
:
:   JVMDUMP013I Processed Dump Event "uncaught", detail 
"java/lang/OutOfMemoryError".
: Exception in thread "main" java.lang.OutOfMemoryError
:         at 
org.apache.lucene.index.TermInfosReader.readIndex(TermInfosReader.java:82)

is it possible that parts of your application are eating up all of the
heap in your JVM before this exception is encountered?  Possibly by
opening a the index many times without closing it?

More specifically, if you write a 4 line app that does nothing by open
your index and then close it again, do you get an OOM? ...

        public class Main {
          public static void main(String[] args) throws Exception {
            Searcher s = new IndexSearcher("/your/index/path");
            s.close();
          }
        }



-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: java-user-help@xxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>