Lots of 2009/09/27 00:49:21 [alert] 22383#0: accept() failed (24: Too many open files)

Payam Chychi pchychi at gmail.com
Sun Sep 27 09:48:47 MSD 2009

odd, you shouldent unless there is a bug with cent os. I recently came  
across an issiue where when writing/creating files on the disk  
resulted in a hault like condition on centOS, as if the system was  
hitting the open file limits. I tested the same hardware and exact  
setup with deviant and the issiue went away... I could rwpliate the  
issiue on demand. also, I know that centos has a bug in the way files  
are written to disk, I'm no expert but if you google centOS slow HD  
performance you'll see it

one thing you can do is install/run 'dstat' it will show you all I/O  
of disk and network/CPU calls

Payam Tarverdyan Chychi
Network Engineer

Sent from my iPhone

On 2009-09-26, at 6:42 PM, Jason Kim <highclass99 at gmail.com> wrote:

> I am running CentOS 5.3, from what I know default limits for  
> standard users file is 200000
> Anyways to make sure I edited /etc/passwd to
> apache:x:48:48:Apache:/var/www:/bin/bash
> So I could login as apache (I set niginx.conf as user  apache apache;)
> and then as root typed
> [root at firewall2 ~]# su apache
> and then as apache typed
> core file size          (blocks, -c) 0
> data seg size           (kbytes, -d) unlimited
> scheduling priority             (-e) 0
> file size               (blocks, -f) unlimited
> pending signals                 (-i) 77824
> max locked memory       (kbytes, -l) 32
> max memory size         (kbytes, -m) unlimited
> open files                      (-n) 200000
> pipe size            (512 bytes, -p) 8
> POSIX message queues     (bytes, -q) 819200
> real-time priority              (-r) 0
> stack size              (kbytes, -s) 10240
> cpu time               (seconds, -t) unlimited
> max user processes              (-u) 77824
> virtual memory          (kbytes, -v) unlimited
> file locks                      (-x) unlimited
> Is there any reason I still should bump into file limits?
> Thanks
> On Sun, Sep 27, 2009 at 7:53 AM, Payam Chychi <pchychi at gmail.com>  
> wrote:
> how is this related to his question? hoe does ur answer help him in  
> figuring out the issiue?
> Jason, check ur ulimits for the user running the process, alsomale  
> sure to update /etc/security/limits so new changed take place at boot
> Regards,
> --
> Payam Tarverdyan Chychi
> Network Engineer
> Sent from my iPhone
> On 2009-09-26, at 11:02 AM, Dennis Brakhane  
> <brakhane at googlemail.com> wrote:
> On Sat, Sep 26, 2009 at 5:59 PM, Jason Kim <highclass99 at gmail.com>  
> wrote:
> worker_processes  12;
> Do you really have 12 cores? It doesn't make much sense to have more
> workers than cores
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090926/4c28652f/attachment.html>

More information about the nginx mailing list