Hi All,

I was testing my solr on MMapDirectory, and while indexing, I get this error
lines in the log:



10:27:41.003 [commitScheduler-4-thread-1] ERROR
org.apache.solr.update.CommitTracker - auto commit
error...:org.apache.solr.common.SolrException: Error opening new searcher
        at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:1310)
        at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1422)
        at
org.apache.solr.update.DirectUpdateHandler2.commit(DirectUpdateHandler2.java:552)
        at org.apache.solr.update.CommitTracker.run(CommitTracker.java:215)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown
Source)
        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Map failed
        at sun.nio.ch.FileChannelImpl.map(Unknown Source)
        at org.apache.lucene.store.MMapDirectory.map(MMapDirectory.java:284)
        at
org.apache.lucene.store.MMapDirectory$MMapIndexInput.<init>(MMapDirectory.java:256)
        at 
org.apache.lucene.store.MMapDirectory.openInput(MMapDirectory.java:224)
        at
org.apache.lucene.codecs.lucene40.Lucene40PostingsReader.<init>(Lucene40PostingsReader.java:68)
        at
org.apache.lucene.codecs.lucene40.Lucene40PostingsFormat.fieldsProducer(Lucene40PostingsFormat.java:316)
        at
org.apache.lucene.codecs.perfield.PerFieldPostingsFormat$FieldsReader.<init>(PerFieldPostingsFormat.java:194)
        at
org.apache.lucene.codecs.perfield.PerFieldPostingsFormat.fieldsProducer(PerFieldPostingsFormat.java:233)
        at
org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:107)
        at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:57)
        at
org.apache.lucene.index.ReadersAndLiveDocs.getReader(ReadersAndLiveDocs.java:120)
        at
org.apache.lucene.index.BufferedDeletesStream.applyDeletes(BufferedDeletesStream.java:214)
        at
org.apache.lucene.index.IndexWriter.applyAllDeletes(IndexWriter.java:3010)
        at
org.apache.lucene.index.IndexWriter.maybeApplyDeletes(IndexWriter.java:3001)
        at org.apache.lucene.index.IndexWriter.getReader(IndexWriter.java:363)
        at
org.apache.lucene.index.StandardDirectoryReader.doOpenFromWriter(StandardDirectoryReader.java:270)
        at
org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged(StandardDirectoryReader.java:255)
        at
org.apache.lucene.index.DirectoryReader.openIfChanged(DirectoryReader.java:249)
        at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:1249)
        ... 11 more
Caused by: java.lang.OutOfMemoryError: Map failed
        at sun.nio.ch.FileChannelImpl.map0(Native Method)
        ... 30 more



And this is how i run the start.jar file:

/java64/bin/java \
-server \
-XX:+UnlockExperimentalVMOptions \
-XX:+UseG1GC \
-XX:+UseCompressedStrings \
-d64 \
-Xmx4096m \
-jar start.jar &

As another fact, on the interface, it shows success for indexing... so this
error lines simply informative about something not important? 

anyone knows why i get this error? I am running on a 64-bit linux OS with
solr 4.0..




-----
Zeki ama calismiyor... Calissa yapar...
--
View this message in context: 
http://lucene.472066.n3.nabble.com/MMapDirectory-Mapping-Failed-error-tp4018182.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to