lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vo Nhu Tuan <vonhut...@gmail.com>
Subject Too many open files error
Date Wed, 23 Mar 2011 09:48:56 GMT
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
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message