Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Solr stopped with Error opening new searcher at org.apache.solr.core

Tags:

java

solr

lucene

Yesterday suddenly our solr server got stopped with following exception

org.apache.solr.common.SolrException: Error opening new searcher at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:1438) at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1550) at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1319) at org.apache.solr.update.DirectUpdateHandler2.commit(DirectUpdateHandler2.java:574) at org.apache.solr.update.processor.RunUpdateProcessor.processCommit(RunUpdateProcessorFactory.java:95) at org.apache.solr.update.processor.UpdateRequestProcessor.processCommit(UpdateRequestProcessor.java:64) at org.apache.solr.update.processor.DistributedUpdateProcessor.processCommit(DistributedUpdateProcessor.java:1147) at org.apache.solr.update.processor.LogUpdateProcessor.processCommit(LogUpdateProcessorFactory.java:157) at org.apache.solr.handler.loader.XMLLoader.processUpdate(XMLLoader.java:266) at org.apache.solr.handler.loader.XMLLoader.load(XMLLoader.java:173) at org.apache.solr.handler.UpdateRequestHandler$1.load(UpdateRequestHandler.java:92)

Caused by: java.io.IOException: Map failed at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:889) at org.apache.lucene.store.MMapDirectory.map(MMapDirectory.java:283) at org.apache.lucene.store.MMapDirectory$MMapIndexInput.

But at that time we have lot of memory left in that server. Any guess?

like image 472
pavan kumar Avatar asked Jun 10 '15 04:06

pavan kumar


1 Answers

Assuming its a linux system you can try ulimit -v unlimited

Check the below links for more information.

https://support.lucidworks.com/hc/en-us/articles/206127457-Caused-by-java-io-IOException-Map-failed

https://stackoverflow.com/a/8893684/689625

You will get answers much faster if you include more information, like the version of your software (in this case solr version), OS Name and version, Java version etc.

like image 74
jay Avatar answered Sep 27 '22 23:09

jay