> he/lucene/store/MMapDirectory.html#setUseUnmap(boolean)
I have tried it already, but it does not help in opening Index... mapping fails > > A additional possibility is to use the new > org.apache.lucene.store.FileSwitchDirectory this one is nice, will try it Thanks for tips Uwe. > > > > > > ----- > > Uwe Schindler > > H.-H.-Meier-Allee 63, D-28213 Bremen > > http://www.thetaphi.de > > eMail: u...@thetaphi.de > > > > > > > -----Original Message----- > > > From: eks dev [mailto:eks...@yahoo.co.uk] > > > Sent: Sunday, July 12, 2009 1:54 PM > > > To: java-user@lucene.apache.org > > > Subject: Re: OOM with 2.9 > > > > > > > > > Thanks Uwe, > > > yes it is on 32 bit in extremely tight memory situation. I just was > > > curious what the reason is (on bigger machine it works). Lucene core > > > requires more real memory? Can you please a bit elaborate, can I estimate > > > it somehow? I do not remember seeing any changes that would cause core to > > > use more memory (we do not sort, no norms overall... this failed just on > > > opening IndexReader)... > > > > > > cheers, eks > > > > > > > > > > > > > > > ----- Original Message ---- > > > > From: Uwe Schindler > > > > To: java-user@lucene.apache.org > > > > Sent: Sunday, 12 July, 2009 13:39:23 > > > > Subject: RE: OOM with 2.9 > > > > > > > > Is it a 32 or 64 bit JVM? If 32 bit, this error can happen, if the new > > > > Lucene Core needs more real memory and so the MMaped address space is > > > > already used. MMapDirectory should only be used with 64 bit machines. > > > > > > > > ----- > > > > Uwe Schindler > > > > H.-H.-Meier-Allee 63, D-28213 Bremen > > > > http://www.thetaphi.de > > > > eMail: u...@thetaphi.de > > > > > > > > > -----Original Message----- > > > > > From: eks dev [mailto:eks...@yahoo.co.uk] > > > > > Sent: Sunday, July 12, 2009 1:24 PM > > > > > To: java-user@lucene.apache.org > > > > > Subject: Re: OOM with 2.9 > > > > > > > > > > > > > > > Stack trace > > > > > > > > > > java.io.IOException: Map failed > > > > > at sun.nio.ch.FileChannelImpl.map(Unknown Source) > > > > > at org.apache.lucene.store.MMapDirectory$MMapIndexInput.(Unknown > > > > > Source) > > > > > at org.apache.lucene.store.MMapDirectory$MMapIndexInput.(Unknown > > > > > Source) > > > > > at org.apache.lucene.store.MMapDirectory.openInput(Unknown Source) > > > > > at org.apache.lucene.index.SegmentReader$CoreReaders.(Unknown > > > > > Source) > > > > > at org.apache.lucene.index.SegmentReader.get(Unknown Source) > > > > > at org.apache.lucene.index.SegmentReader.get(Unknown Source) > > > > > at org.apache.lucene.index.DirectoryReader.(Unknown Source) > > > > > at org.apache.lucene.index.ReadOnlyDirectoryReader.(Unknown Source) > > > > > at org.apache.lucene.index.DirectoryReader$1.doBody(Unknown Source) > > > > > at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(Unknown > > > > > Source) > > > > > at org.apache.lucene.index.DirectoryReader.open(Unknown Source) > > > > > at org.apache.lucene.index.IndexReader.open(Unknown Source) > > > > > at org.apache.lucene.index.IndexReader.open(Unknown Source) > > > > > at > > > > > > > > com.qspi.su.search.IndexReaderFactory.getNewIndexReaderInstance(IndexReade > > > > > rFactory.java:70) > > > > > at com.qspi.su.search.SearchStrategy.(SearchStrategy.java:147) > > > > > at com.qspi.su.search.Searcher.(Searcher.java:170) > > > > > at com.qspi.su.search.Searchers.(Searchers.java:21) > > > > > at com.qspi.su.ipc.SUProtocolImpl.(SUProtocolImpl.java:76) > > > > > at com.qspi.su.ipc.SUServer.run(SUServer.java:84) > > > > > at com.qspi.su.ipc.SUServer.main(SUServer.java:204) > > > > > Caused by: java.lang.OutOfMemoryError: Map failed > > > > > at sun.nio.ch.FileChannelImpl.map0(Native Method) > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > > > > > For additional commands, e-mail: java-user-h...@lucene.apache.org > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > > > > For additional commands, e-mail: java-user-h...@lucene.apache.org > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > > > For additional commands, e-mail: java-user-h...@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org