Well, raising the limits is one option but there may be better ones.
There's an FAQ entry on this:
http://wiki.apache.org/lucene-java/LuceneFAQ#Why_am_I_getting_an_IOException_that_says_.22Too_many_open_files.22.3F
Take a look at org.apache.lucene.search.SearcherManager "Utility class
to safely s
Hello!
You need to allow the user that is running Lucene to open more files.
There are plenty of tutorials available on the web. Modify your
/etc/security/limits.conf and if for example your user is lucene add
the following (or modify if those already exists):
lucene soft nofile 64000
lucene hard
Here is the log:
Jan 24, 2013 4:10:33 AM org.apache.tomcat.util.net.AprEndpoint$Acceptor run
SEVERE: Socket accept failed
org.apache.tomcat.jni.Error: 24: Too many open files
at org.apache.tomcat.jni.Socket.accept(Native Method)
at org.apache.tomcat.util.net.AprEndpoint$Acceptor.run(AprEndpoint.ja
Can you post the full stack trace of the CorruptIndexException?
Mike McCandless
http://blog.mikemccandless.com
On Tue, Jan 22, 2013 at 8:20 AM, Cheng wrote:
> Hi,
>
> I run a Lucene application on Tomcat. The app will try to open a Linux
> directory, and sometime returns CorruptIndexException e