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

Matthew Buckett matthew.buckett at oucs.ox.ac.uk
Thu Nov 17 08:00:03 PST 2011

On 17 November 2011 12:00, Colin Tatham <colin.tatham at unimelb.edu.au> wrote:
> 14/11/11 10:50 PM, Matthew Buckett:
>> On 14 November 2011 06:42, Colin Tatham<colin.tatham at unimelb.edu.au>  wrote:
>>> We increased the value set in /etc/security/limits.conf:
> ...
>>> which seems to have changed the limit:
>>> [sakai at crete ~]$ ulimit -n
>>> 65535
>>> but I still get the errors?
>> How are you starting tomcat? as /etc/security/limits.conf only applies
>> to process started after a login, if you have an upstart script then
>> they won't bet getting picked up.
> I'm still not having much joy with this, any clues in this bit of the stack trace?

Attached is a test class. Download it, compile it and run it on a
machine to see how many files the JVM can open:

javac OpenFiles.java
java OpenFiles

On my MacBook I get:

Too many open files in system
Failed to create tmp file. Already got: 10014

On my Ubuntu system:

Too many open files in system
Failed to create tmp file. Already got: 4087

  Matthew Buckett
  VLE Developer, LTG, Oxford University Computing Services
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenFiles.java
Type: application/octet-stream
Size: 682 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/production/attachments/20111117/21de3568/attachment.obj 

More information about the production mailing list