24: Too many open files

Richard Kearsley Richard.Kearsley at m247.com
Fri Apr 1 20:18:08 MSD 2011


Do you have a example?
What will this do?


From: smallfish [mailto:smallfish.xy at gmail.com]
Sent: 01 April 2011 17:07
To: nginx at nginx.org
Subject: Re: 24: Too many open files

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<mailto: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<mailto:nginx at nginx.org>
http://nginx.org/mailman/listinfo/nginx

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20110401/d8b21267/attachment-0001.html>


More information about the nginx mailing list