24: Too many open files

smallfish smallfish.xy at gmail.com
Fri Apr 1 20:07:09 MSD 2011


write the ulimit number into profile file. then source it.
--
blog: http://chenxiaoyu.org



On Fri, Apr 1, 2011 at 11:58 PM, Richard Kearsley <Richard.Kearsley at m247.com
> wrote:

>  Hi. Hope someone can answer which open file limit is being reached
> (doesn’t seem right to me)
>
>
>
> tail error.log
>
> 2011/04/01 15:43:46 [alert] 18945#0: accept() failed (24: Too many open
> files)
>
> 2011/04/01 15:43:46 [alert] 18945#0: accept() failed (24: Too many open
> files)
>
> 2011/04/01 15:43:46 [alert] 18945#0: accept() failed (24: Too many open
> files)
>
> 2011/04/01 15:43:46 [alert] 18945#0: accept() failed (24: Too many open
> files)
>
> 2011/04/01 15:43:46 [alert] 18945#0: accept() failed (24: Too many open
> files)
>
> 2011/04/01 15:43:46 [alert] 18945#0: accept() failed (24: Too many open
> files)
>
> 2011/04/01 15:43:46 [alert] 18945#0: accept() failed (24: Too many open
> files)
>
>
>
> lsof -n | wc -l
>
> 4321
>
>
>
> cat /proc/sys/fs/file-max
>
> 1645538
>
>
>
> ulimit -n
>
> 1000000
>
>
>
> Why it the limit being reached?
>
>
>
> Many thanks
>
> Richard
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20110402/78d1197f/attachment.html>


More information about the nginx mailing list