lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mindaugas Žakšauskas <min...@gmail.com>
Subject Re: Too many open files error
Date Wed, 23 Mar 2011 09:52:41 GMT
Hi,

Have a look at this:

http://wiki.apache.org/lucene-java/LuceneFAQ#Why_am_I_getting_an_IOException_that_says_.22Too_many_open_files.22.3F

m.

On Wed, Mar 23, 2011 at 9:48 AM, Vo Nhu Tuan <vonhutuan@gmail.com> wrote:
> Hi,
>
> Can someone help me with this problem please? I got these when running my program:
>
> java.io.FileNotFoundException: /Users/vonhutuan/Documents/workspace/InformationExtractor/index_wordlist/_i82.frq
(Too many open files)
>        at java.io.RandomAccessFile.open(Native Method)
>        at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
>        at org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexOutput.<init>(SimpleFSDirectory.java:180)
>        at org.apache.lucene.store.NIOFSDirectory.createOutput(NIOFSDirectory.java:85)
>        at org.apache.lucene.index.FormatPostingsDocsWriter.<init>(FormatPostingsDocsWriter.java:47)
>        at org.apache.lucene.index.FormatPostingsTermsWriter.<init>(FormatPostingsTermsWriter.java:33)
>        at org.apache.lucene.index.FormatPostingsFieldsWriter.<init>(FormatPostingsFieldsWriter.java:59)
>        at org.apache.lucene.index.FreqProxTermsWriter.flush(FreqProxTermsWriter.java:94)
>        at org.apache.lucene.index.TermsHash.flush(TermsHash.java:156)
>        at org.apache.lucene.index.DocInverter.flush(DocInverter.java:72)
>        at org.apache.lucene.index.DocFieldProcessor.flush(DocFieldProcessor.java:64)
>        at org.apache.lucene.index.DocumentsWriter.flush(DocumentsWriter.java:629)
>        at org.apache.lucene.index.IndexWriter.doFlushInternal(IndexWriter.java:3694)
>        at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3595)
>        at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3585)
>        at org.apache.lucene.index.IndexWriter.optimize(IndexWriter.java:2338)
>        at org.apache.lucene.index.IndexWriter.optimize(IndexWriter.java:2316)
>        at org.apache.lucene.index.IndexWriter.optimize(IndexWriter.java:2286)
>        at patterngenerator.TextMatcher.indexText(TextMatcher.java:86)
>        at patterngenerator.TextMatcher.<init>(TextMatcher.java:60)
>        at patterngenerator.PatternGenerator.<init>(PatternGenerator.java:53)
>        at Test2.main(Test2.java:64)
>
> What it was doing is:
>        writer.optimize();
> where writer was an instance of IndexWriter.
>
> As of my program, it indexes many set of documents independently, but the index files
are store under the same directory. Which means that the index files get overwritten when
I index a new set of documents.
>
> Tuan

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message