ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Странное поведение nginx


  • To: nginx-ru@xxxxxxxxx
  • Subject: Странное поведение nginx
  • From: Igor Savchenko <dicsydel@xxxxxxxxx>
  • Date: Fri, 2 Mar 2007 19:33:21 +0200
  • Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:date:from:x-mailer:reply-to:organization:x-priority:message-id:to:subject:mime-version:content-type:content-transfer-encoding; b=ntpvGRUb7on52rLy6R/tYAVoJkaQchwep88fCBjib2rv/IZuvvkTsIXB9RzgBCZnWY1At8M6pHUqBxaImrMiLD8qg5DbaSux50RWizMuDtPo18LlJgOYtv5o3+7OiLBH7nSOqtUZmjoblQchaZwowPmjG1xQ7HTltr5CaXnEhE0=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:x-mailer:reply-to:organization:x-priority:message-id:to:subject:mime-version:content-type:content-transfer-encoding; b=uYqtUB4cp5RUyJ5y/S4yxVAJzoYuc3fIyflYwWLcCxE5I0jPLS+FW4+wHDDKrdHnG1bSA68M+L8t/PIzEWo+tlKTqwxH1TAA4p2yHur3gKmyA0+cyAVUXVJ1mvFtdSKknHMse6DUOambwqb1I13rOocqaB2xuWV+9gn3iPlAIiI=
  • Organization: Webta

Hello nginx-ru,

конфиг:

worker_processes 10;

events {
    worker_connections  1024;
}


http {
    include       conf/mime.types;
    default_type  application/octet-stream;

    access_log off;
    error_log off;

    sendfile        on;
    keepalive_timeout  20;
    tcp_nodelay        on;

    upstream backend {
        ip_hash;

        server xxx.xxx.xxx.xxx:80;
        server xxx.xxx.xxx.xxx:80;

   }


    server {
        listen      xxx.xxx.xxx.xxx:80;
        server_name  xxxxxxxxx.com;


        location /    {
            proxy_pass         http://backend;
            proxy_redirect     off;
            proxy_buffering    on;

            proxy_set_header   Host             $host;
            proxy_set_header   X-Real-IP        $remote_addr;
            proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;

            client_max_body_size       1m;
            client_body_buffer_size    128k;

            proxy_connect_timeout      20;
            proxy_send_timeout         20;
            proxy_read_timeout         20;

            proxy_buffer_size          8k;
            proxy_buffers              20 64k;
            proxy_busy_buffers_size    64k;
            proxy_temp_file_write_size 64k;
        }

        location ~* 
^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|wav|bmp|rtf|js)$
 
        {
            root   /www/www;
        }

        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }

}
}

Ровно каждые два часа начинается такая вот штука:

PID USERNAME  THR PRI NICE   SIZE    RES STATE  C   TIME   WCPU COMMAND
92797 nobody      1 107    0  3788K  3288K RUN    0   0:20 11.18% nginx
92801 nobody      1 106    0  3764K  3264K RUN    0   0:19 10.30% nginx
92807 nobody      1 106    0  3776K  3276K RUN    0   1:06 10.21% nginx
92799 nobody      1 106    0  3772K  3248K RUN    0   0:22 10.06% nginx
92806 nobody      1 105    0  4000K  3500K RUN    0   0:07 10.01% nginx
92809 nobody      1 106    0  3796K  3296K CPU2   2   1:29  9.96% nginx
92803 nobody      1 106    0  3796K  3272K RUN    0   0:19  9.91% nginx
92798 nobody      1 106    0  3808K  3308K RUN    2   0:20  9.77% nginx
92800 nobody      1 106    0  3812K  3296K RUN    0   1:26  9.67% nginx
92808 nobody      1 105    0  3780K  3248K RUN    0   3:01  9.47% nginx
92811 nobody      1 106    0  3824K  3312K RUN    0   0:26  9.13% nginx
92805 nobody      1 105    0  3792K  3252K RUN    0   1:16  8.89% nginx
92802 nobody      1 105    0  3744K  3244K RUN    0   0:27  8.79% nginx
92804 nobody      1   4    0  3788K  3272K kqread 2   2:21  1.71% nginx

nginx жрет все больеш и больше CPU и перестает принимать запросы.
ничего не помогает кроме как killall -9 nginx и старта его по новой.
Никаких кронов в этот момент не запускается. В чем может быть
проблемма?

---------------------------------
Igor V. Savchenko

http://webta.net

mailto: igor@xxxxxxxxx
ICQ: 86915046




 




Copyright © Lexa Software, 1996-2009.