Dear Devs and Users,

it is I! 

Okay, it starts with that:

/Exception in thread "Lucene Merge Thread #1"
org.apache.lucene.index.MergePolicy$MergeException: java.io.IOException: Map
failed
        at
org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:517)
        at
org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:482)
Caused by: java.io.IOException: Map failed
        at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:782)
        at
org.apache.lucene.store.MMapDirectory$MMapIndexInput.<init>(MMapDirectory.java:264)
        at 
org.apache.lucene.store.MMapDirectory.openInput(MMapDirectory.java:216)
        at org.apache.lucene.index.FieldsReader.<init>(FieldsReader.java:129)
        at
org.apache.lucene.index.SegmentCoreReaders.openDocStores(SegmentCoreReaders.java:244)
        at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:116)
        at 
org.apache.lucene.index.IndexWriter$ReaderPool.get(IndexWriter.java:702)
        at 
org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:4192)
        at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3859)
        at
org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:388)
        at
org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:456)
Caused by: java.lang.OutOfMemoryError: Map failed
        at sun.nio.ch.FileChannelImpl.map0(Native Method)
        at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:779)
        ... 10 more/


And than quickly moves forward to that:

/SEVERE: auto commit error...
java.io.IOException: Map failed
        at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:782)
        at
org.apache.lucene.store.MMapDirectory$MMapIndexInput.<init>(MMapDirectory.java:264)
        at 
org.apache.lucene.store.MMapDirectory.openInput(MMapDirectory.java:216)
        at
org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:88)
        at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:114)
        at 
org.apache.lucene.index.IndexWriter$ReaderPool.get(IndexWriter.java:702)
        at 
org.apache.lucene.index.IndexWriter$ReaderPool.get(IndexWriter.java:677)
        at
org.apache.lucene.index.BufferedDeletesStream.applyDeletes(BufferedDeletesStream.java:249)
        at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3571)
        at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3508)
        at 
org.apache.lucene.index.IndexWriter.closeInternal(IndexWriter.java:1850)
        at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1814)
        at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1778)
        at 
org.apache.solr.update.SolrIndexWriter.close(SolrIndexWriter.java:143)
        at
org.apache.solr.update.DirectUpdateHandler2.closeWriter(DirectUpdateHandler2.java:183)
        at
org.apache.solr.update.DirectUpdateHandler2.commit(DirectUpdateHandler2.java:416)
        at
org.apache.solr.update.DirectUpdateHandler2$CommitTracker.run(DirectUpdateHandler2.java:611)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:452)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
        at java.util.concurrent.FutureTask.run(FutureTask.java:149)
        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:109)
        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:218)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
        at java.lang.Thread.run(Thread.java:736)
Caused by: java.lang.OutOfMemoryError: Map failed
        at sun.nio.ch.FileChannelImpl.map0(Native Method)
        at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:779)
        ... 24 more/


And at than that:
/
SEVERE: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed
out:
NativeFSLock@/bsbsolrdata/solrindex/master01_solr33x/core.digi20/data/index/write.lock
        at org.apache.lucene.store.Lock.obtain(Lock.java:84)
        at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1115)
        at 
org.apache.solr.update.SolrIndexWriter.<init>(SolrIndexWriter.java:83)
        at
org.apache.solr.update.UpdateHandler.createMainIndexWriter(UpdateHandler.java:101)
        at
org.apache.solr.update.DirectUpdateHandler2.openWriter(DirectUpdateHandler2.java:175)
        at
org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:223)
        at
org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:61)
        at org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:99)
        at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:77)
        at
org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:67)
        at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:1368)
        at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:356)
        at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:252)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:403)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:301)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:162)
        at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
        at java.lang.Thread.run(Thread.java:736)/


At this point the whole server is out of order. Even the other cores. 

- Multi-core system, 4 cores
- approx. 4100 docs, large book-data (~100-1000 pages per book)
- indexed by book, not by page  
- it seems the error occurs randomly
- Solr 3.3.0 official release (with Solr 3.2, no such behavior) 
- Tomcat 7.014 (-Xms22000m -Xmx22000m -XX:MaxPermSize=2000m)

java version "1.6.0"
Java(TM) SE Runtime Environment (build pxa6460sr9fp2-20110625_01(SR9 FP2))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux amd64-64
jvmxa6460sr9-20110624_85526 (JIT enabled, AOT enabled)
J9VM - 20110624_085526
JIT  - r9_20101028_17488ifx17
GC   - 20101027_AA)
JCL  - 20110530_01

We've tried the following changes in solrconfig.xml:

<mergeScheduler class="org.apache.lucene.index.SerialMergeScheduler" /> 
<mergePolicy class="org.apache.lucene.index.LogByteSizeMergePolicy"/> 

Mostly the error occurs after adding approx. 150 to 300 documents. The last
batch we tried without  <add commitWithin="1000">....</add> and now it seems
to work fine for at least 1032 documents.

Any ideas? 


Best regards & thank you,

Sebastian 






--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-3-3-Exception-in-thread-Lucene-Merge-Thread-1-tp3185248p3185248.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to