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

Colin Tatham colin.tatham at unimelb.edu.au
Wed Nov 23 14:31:48 PST 2011


Hi

Think I finally solved this, it was my own fault :-(

When the problem first happened, I tried setting a higher limit in 
catalina.sh, as I don't have permissions to edit limits.conf. That 
didn't work, also due to permissions, and I forgot to remove it. I 
suspect that later, as part of the process of the limit being increased 
in limits.conf, I was also given permission to set a limit, so my 
setting in catalina.sh suddenly had an effect, but I hadn't set it quite 
high enough!

At least it's now seems to be sorted, and the indexing completes 
successfully.

Thanks for the help.

Colin


15/11/11 10:13 AM, Colin Tatham:
> 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.
>
> Thanks. At the moment I'm stopping and starting Tomcat manually using
> catalina.sh as a user called 'sakai' and when I check the limit as the
> same user, it reports the increased limit that we've set in
> /etc/security/limits.conf
>
>> If you have a script to start tomcat which if run as root (before
>> running the tomcat process as another user) then I'd up the limits in
>> there.
>
> OK, could give that a try, but it sounds like I'm broadly on the right
> track? It's an OS limit that's causing the issue rather than something
> Java-related?
>
> Thanks
>
> Colin
>
>



-- 
Colin Tatham
Educational Technologist | Learning Environments
University Library | The University of Melbourne
http://www.trs.unimelb.edu.au


More information about the production mailing list