too many open files

István leccine at gmail.com
Thu Sep 10 19:31:04 MSD 2009


please note, do NOT overwrite but ADD

add to  /etc/security/limits.conf

www-data             soft    nofile           24000
www-data             hard    nofile           32000


add  /etc/pam.d/login

session    required   /lib/security/pam_limits.so




On Thu, Sep 10, 2009 at 4:22 PM, Ilan Berkner <iberkner at gmail.com> wrote:

> Yes, newbie to linux (a year into it, still learning every day).
> I searched on Google but am unclear on server settings that impact this vs.
> nginx settings and what the numbers should be, etc.
>
>
> On Thu, Sep 10, 2009 at 11:16 AM, István <leccine at gmail.com> wrote:
>
>> i would start with google, look up the "how to ask smart questions"
>>
>> and if you founded it and read it come back to the list.
>>
>> but from the level of details you gave i presume you are a newbie linux
>> administrator and founded the 1024 limitation in linux.
>>
>> to get over it modify the limits.conf in /etc/security/ and I presume you
>> are using ubuntu so modify the /etc/pam.d/login and include the
>> pam_limits.so with full path
>>
>> :)
>>
>>
>> On Thu, Sep 10, 2009 at 4:10 PM, Ilan Berkner <iberkner at gmail.com> wrote:
>>
>>> how to handle?
>>>
>>> 2009/09/10 10:09:30 [alert] 9691#0: accept() failed (24: Too many open
>>> files)
>>>
>>>
>>
>>
>> --
>> the sun shines for all
>>
>
>


-- 
the sun shines for all
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090910/12a715ab/attachment.html>


More information about the nginx mailing list