cancel
Showing results for 
Search instead for 
Did you mean: 

'Too many open files' error in action executer

bopolissimus
Confirmed Champ
Confirmed Champ
Hello all,

I have an action executer (running on alfresco 2.9, java 1.5, tomcat 5.5, ubuntu hardy) which reads a CSV file and outputs many XML files (one per CSV record).

The input file is around 10,000 records altogether.  The action executer does not complete.  It always ends at a bit less than 2000 rows.  Our internal bug tracker has this note:

=========================>
she thinks possibly it's a
java.io.FileNotFoundException:
/[xxxx]/alf_data/lucene-indexes/workspace/SpacesStore/de00ca29-713f-4181-9c64-90999f71bff1/_ei.cfs
(Too many open files)

sudo lsof -p <tomcat> | less shows the exception happens at @ 1234 file handles

the vast majority are lucene indexes eg;

jsvc    14658 tomcat55  941r   REG        8,6     2784 9890549
/[xxxx]/alf_data/lucene-indexes/workspace/SpacesStore/86d7df1e-2b43-476d-b0b9-005879867af1/_ce.cfs
(deleted)

<===================
she thinks possibly it's a
has anyone seen this before?  is there a workaround or configuration fix?  e.g., perhaps something in repository.properties?  my colleague thinks it might be a lucene or alfresco leak of some sort.  Is that likely?  Is this a known bug?

Gerald
4 REPLIES 4

cneto
Champ in-the-making
Champ in-the-making
Hi,

Once we had the "too many open files" and we found out that was because of the "audit"… when we turn off the audit it didn´t happened again…

But I don´t know if is your problem now…

bopolissimus
Confirmed Champ
Confirmed Champ
Ok, that sounds like a good thing to try.  How did you turn audit off?

bopolissimus
Confirmed Champ
Confirmed Champ
oh, sorry.  I just looked in auditConfig.xml.  audit is enabled="false"

bopolissimus
Confirmed Champ
Confirmed Champ
The problem was a bug in my own code.  I was running one search query per row, to see if already in alfresco, and I was not running ResultSet.close() on the result set.