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@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@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx