lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Lucene index causing Too Many Open Files
Date Thu, 17 Jun 2004 15:32:43 GMT
Upgrade to Lucene 1.3 (or greater) and enable the compound file format  
when you index.  This should alleviate this issue.

	Erik

On Jun 17, 2004, at 10:31 AM, Dan Aloma wrote:

>      We've got a lucene search index that we use to search (and
> delete) a couple thousand items. It runs fine for a few days, and then
> it complains about "Too Many Open Files". I am running on Red Hat 7.3.
> The user that the webserver runs as, has an unlimited number of files
> it can open. That's what makes this error so strange. We're optimizing
> the index every hour, also.
>      I saw in the old lists that several people have had this problem,
> but there was no solid answers as to how to fix it. Any ideas out
> there? TIA.
>
> The error in the logs is:
>
> java.io.FileNotFoundException: /home/foobar/index/_dh2.f5 (Too many  
> open files)
>         at java.io.RandomAccessFile.open(Native Method)
>         at java.io.RandomAccessFile.<init>(RandomAccessFile.java:204)
>         at  
> org.apache.lucene.store.FSInputStream$Descriptor.<init>(FSDirectory.jav 
> a:389)
>         at  
> org.apache.lucene.store.FSInputStream.<init>(FSDirectory.java:418)
>         at  
> org.apache.lucene.store.FSDirectory.openFile(FSDirectory.java:291)
>         at  
> org.apache.lucene.index.SegmentReader.openNorms(SegmentReader.java: 
> 388)
>         at  
> org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:151)
>         at  
> org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:120)
>         at  
> org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:122)
>         at org.apache.lucene.store.Lock$With.run(Lock.java:148)
>         at  
> org.apache.lucene.index.IndexReader.open(IndexReader.java:111)
>         at  
> org.apache.lucene.index.IndexReader.open(IndexReader.java:99)
>         at  
> org.apache.lucene.search.IndexSearcher.<init>(IndexSearcher.java:75)
>         .....
>
>
> Dan
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message