I had a similar problem because I was not explicitly calling close on
IndexSearcher when I created a new one (if the index had changed) I was
doing Seacher = new IndexSeacher() and on Linux I was running out of file
handles I then change it to:
Searcher.close();
Seacher = new IndexSeacher()
and the problem went away.
Hope that helps.
Thanks,
Rob Outar
OneSAF A&I -- SAIC
Software\Data Engineer
321-235-7660
outarr@saic.com
-----Original Message-----
From: Andrey Akselrod
Sent: Wednesday, April 30, 2003 11:11 AM
To: Lucene Users List
Subject: Re: running out of file handles when reindexing
Sorry, I meant to ask Is there a way to predict how many file handles LUCENE
would require?
:)
----- Original Message -----
From: "Andrey Akselrod" <aakselrod@runtime.com>
To: "Lucene Users List" <lucene-user@jakarta.apache.org>
Sent: Wednesday, April 30, 2003 11:08 AM
Subject: running out of file handles when reindexing
This is an exception that we've got:
03-04-30 03:00:12,806 ERROR [ThreadPoolThread 1]
/usr/local/tomcat_4.1.24/myapps/cl/WEB-INF/search/_1t.f5 (Too many open
files) java.io.FileNotFoundException:
/usr/local/tomcat_4.1.24/myapps/cl/WEB-INF/search/_1t.f5 (Too many open
files)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:200)
Is there a way to predict how many file handles Velocity would require? Is
there a setting I can use to limit this number?
Thank you!
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org