ПРОЕКТЫ 


  АРХИВ 


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]

Re: Из за чего медленно работает nginx?


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: Из за чего медленно работает nginx?
  • From: "Renat" <nginx-forum@xxxxxxxx>
  • Date: Wed, 05 Dec 2012 13:27:14 -0500
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tigger.jlkhosting.com; s=x; h=Date:Sender:From:References:In-Reply-To:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=i61MjiwSBX7AoVPGfBj3w743P8Gq/Ms+7EJDNXSOluI=; b=mPNxm8hw4q4ONPVVwNHfZVncjspk+xw+rPw+qTXkMXKJbbOUfaXMUpbt51UC89bXw5UnPJR972mHVesDf7U0va+c3Lpg+a8StayZ4s86iLvclWeZAR0EwkNNmdPal3Ht;
  • In-reply-to: <CAHjk_0POOdsiN=Yq06xR4SPYXDu73TArWTPN1Gm0X_hgNmLDsA@mail.gmail.com>
  • References: <CAHjk_0POOdsiN=Yq06xR4SPYXDu73TArWTPN1Gm0X_hgNmLDsA@mail.gmail.com>

Сейчас для эксперимента поставил Apache, - он замечательно работает.

nginx перевел на 9009 порт, здесь можно посмотреть лог:
2012/12/05 06:19:16 [notice] 2751#0: using the "epoll" event method
2012/12/05 06:19:16 [notice] 2751#0: nginx/1.2.3
2012/12/05 06:19:16 [notice] 2751#0: OS: Linux 2.6.31.6_SMP_820
2012/12/05 06:19:16 [notice] 2751#0: getrlimit(RLIMIT_NOFILE): 1024:1024
2012/12/05 06:19:16 [notice] 2752#0: start worker processes
2012/12/05 06:19:16 [notice] 2752#0: start worker process 2753
2012/12/05 06:19:16 [notice] 2752#0: start worker process 2754
2012/12/05 06:19:51 [info] 2753#0: *1 client 192.168.1.103 closed keepalive
connection
2012/12/05 06:19:51 [info] 2754#0: *2 client 192.168.1.103 closed keepalive
connection
2012/12/05 06:21:56 [info] 2754#0: *3 client timed out (110: Connection
timed out) while reading client request line, client: 192.168.1.103, server:
0.0.0.0:9009
2012/12/05 06:21:56 [info] 2753#0: *4 client 192.168.1.103 closed keepalive
connection
2012/12/05 06:24:01 [info] 2753#0: *5 client timed out (110: Connection
timed out) while reading client request line, client: 192.168.1.103, server:
0.0.0.0:9009


-------------
Сам конфиг:

user http;
worker_processes  2;

## [ debug | info | notice | warn | error | crit ]
error_log  /var/log/nginx/error2.log debug;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

#pid        logs/nginx.pid;

events {
    worker_connections  1024;
}

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

    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request"
'
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';
    #access_log  logs/access.log  main;

    sendfile on;
    keepalive_timeout 65;

    server {
        listen 9009;
        server_name 192.168.1.101;
        root /var/www;

        location / {
                ssi on;
                index index.html;
        }
    }

}
-------------

Страницы как и ранее в nginx грузятся по 4-5 минут. Иногда вообще не
догружаются. Подскажите пожалуйста в чем еще может быть дело?

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?21,233427,233609#msg-233609

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.