[Deploying Sakai] "Too many open files" and search indexing

Colin Tatham colin.tatham at unimelb.edu.au
Sun Nov 13 22:42:47 PST 2011


I'm having some issues with configuring the Sakai search. We're running 

I found some posts in the Sakai mail list archives which helped with the 
configuration, and I can post my config details if it helps, but my 
current problem is that when rebuilding or refreshing the index, I'm 
getting errors like this:

2011-11-14 16:25:59,130  WARN IndexManager 
org.sakaiproject.search.indexer.impl.TransactionalIndexWorker -  Failed 
to index document for /site/~0ec94356-874b-4d56-b786-75968047c257 cause: 
(Too many open files)
(Too many open files)

I found some suggestions that the limit needed to be increased in the 
OS. That did seem to be the problem initially:

[sakai at crete ~]$ ulimit -n

I checked how many files it had open when the problem occurred:
[sakai at crete ~]$ /usr/sbin/lsof -p 28760 | wc -l

We increased the value set in /etc/security/limits.conf:

*  soft   nofile    65535
*  hard   nofile    65535

which seems to have changed the limit:
[sakai at crete ~]$ ulimit -n

but I still get the errors?

Would using 2.8.1 or the latest version of the search tool solve this issue?



Colin Tatham
Educational Technologist | Learning Environments
University Library | The University of Melbourne

More information about the production mailing list