cancel
Showing results for 
Search instead for 
Did you mean: 

too many open files

sharkie
Champ in-the-making
Champ in-the-making
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
1 REPLY 1

andy
Champ on-the-rise
Champ on-the-rise
Hi

Can you describe what you did to get into this state?
Is it repeatable?
Can you describe your installatoin box (os - which unix, java version etc)

Regards

Andy