AnsweredAssumed Answered

too many open files

Question asked by sharkie on Mar 7, 2006
Latest reply on Mar 20, 2006 by andy
Hi,
I have Alfresco version 1.1.2. All is ok except lots of file descriptors remain allocated and at a point we get this exception:


10:42:19,593 ERROR [impl.lucene.LuceneBase] Error

java.io.FileNotFoundException: /home/digitools/tomcat/bin/alf_data/lucene-indexes/workspace/SpacesStore/index/_6ff.del (Too many open files)
        at java.io.RandomAccessFile.open(Native Method)
        at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
        at org.apache.lucene.store.FSInputStream$Descriptor.<init>(FSDirectory.java:376)
        at org.apache.lucene.store.FSInputStream.<init>(FSDirectory.java:405)
        at org.apache.lucene.store.FSDirectory.openFile(FSDirectory.java:268)
        at org.apache.lucene.util.BitVector.<init>(BitVector.java:125)
        at org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java:116)
        at org.apache.lucene.index.SegmentReader.

lsof finds 1091 open files owned by the java process : around 693 under alf_data/contentstore and 281 like "….temp/Alfresco/alfresco37399.upload (deleted)"

we can increase the number of open file descriptors but this does not seem right. can we do something to fix it ? is there a config option that will  prevent this from happening? Should an upgrade to 1.2 fix this problem ?

thanks much,
mihai

Outcomes