[ http://issues.apache.org/jira/browse/SOLR-4?page=comments#action_12369992 ]
Ben reeves commented on SOLR-4: ------------------------------- Ok i found the olution, it is not really a solr bug. If you are using linux you need to run: #su root #ulmit -n 1000000 That should fix it. Is there a way to revent solr from having to open so many files at once? I think that would be a better solution > java.io.FileNotFoundException: (Too many open files) > ---------------------------------------------------- > > Key: SOLR-4 > URL: http://issues.apache.org/jira/browse/SOLR-4 > Project: Solr > Type: Bug > Components: update > Environment: linux - ubuntu dapper latest jre 1. > Reporter: Ben reeves > Priority: Blocker > > After adding a few thousand files I get the following error, when adding or > deleting: > <result status="1">java.io.FileNotFoundException: > /home/me/Desktop/www/ftpsearch/admin/lucene/database/file_index/data/index/_5o.tii > (Too many open files) > at java.io.RandomAccessFile.open(Native Method) > at java.io.RandomAccessFile.<init>(Unknown Source) > at > org.apache.lucene.store.FSIndexInput$Descriptor.<init>(FSDirectory.java:425) > at > org.apache.lucene.store.FSIndexInput.<init>(FSDirectory.java:434) > at org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:324) > at > org.apache.lucene.index.TermInfosReader.<init>(TermInfosReader.java:52) > at > org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java:147) > at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:129) > at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:110) > at org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:154) > at org.apache.lucene.store.Lock$With.run(Lock.java:109) > at org.apache.lucene.index.IndexReader.open(IndexReader.java:143) > at org.apache.lucene.index.IndexReader.open(IndexReader.java:127) > at org.apache.solr.search.SolrIndexSearcher.<init>(Unknown Source) > at org.apache.solr.core.SolrCore.newSearcher(Unknown Source) > at org.apache.solr.update.DirectUpdateHandler2.openSearcher(Unknown > Source) > at org.apache.solr.update.DirectUpdateHandler2.doDeletions(Unknown > Source) > at org.apache.solr.update.DirectUpdateHandler2.deleteByQuery(Unknown > Source) > at org.apache.solr.core.SolrCore.update(Unknown Source) > at org.apache.solr.servlet.SolrServlet.doPost(Unknown Source) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:767) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:860) > at > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:408) > at > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:350) > at > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:195) > at > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:164) > at > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:536) > at org.mortbay.jetty.Server.handle(Server.java:309) > at org.mortbay.jetty.Server.handle(Server.java:285) > at org.mortbay.jetty.HttpConnection.doHandler(HttpConnection.java:363) > at > org.mortbay.jetty.HttpConnection.access$1600(HttpConnection.java:45) > at > org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:625) > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:613) > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:195) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:297) > at > org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:680) > at > org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:412) > I have rebuild evrything from scratch several times, but I always get the > error. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
