Очень много waiting connections

Alexey Belousov web at biplane.ru
Mon Jul 30 13:08:57 MSD 2007


Здравствуйте.
Есть небольшая проблема - stub_status сообщает о большом количестве 
waiting соединений. Вот так например:

Active connections: 102965 
server accepts handled requests
 4061342 4061342 17229323 
Reading: 1 Writing: 12 Waiting: 102952 

Вот такая картина получается в долгосрочной перспективе: 
http://img516.imageshack.us/img516/2181/nginxhz9.png
Провалы на этой картинке - это ручной перезапуск nginx.
На производительности это кажется не сказывается, но все равно тревожит, 
хотелось бы разобраться - почему это происходит.
nginx используется как http и как почтовый прокси сервер.

ОС FreeBSD 6.2-RELEASE

nginx version: nginx/0.5.23
built by gcc 3.4.6 [FreeBSD] 20060305
configure arguments: --with-http_stub_status_module --with-mail --with-http_ssl_module

Конфиг:

worker_processes        2;

error_log               /var/log/nginx/error.log notice;
pid                     /var/run/nginx.pid;

events {
    worker_connections  1024;
}

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

    access_log          off;

    proxy_pass_header   Server;

    sendfile            on;
    tcp_nopush          on;
    tcp_nodelay         on;

    server_names_hash_bucket_size	1024;
    client_max_body_size		8m;

    include             conf/domains/*;
}

# email proxy config
mail {
      auth_http    localhost:970/;
      auth_http_timeout  5;

      proxy_pass_error_message on;

      #imap
      imap_capabilities "IMAP4rev1" "UIDPLUS" "CHILDREN" "NAMESPACE" "THREAD=ORDEREDSUBJECT" "THREAD=REFERENCES" "SORT" "QUOTA" "IDLE" "ACL" "ACL2=UNION";

      #pop3
      pop3_auth         plain;
      pop3_capabilities "TOP" "USER" "PIPELINING" "UIDL";

      #smtp
      smtp_auth         login plain;
      smtp_capabilities PIPELINING 8BITMIME;
      xclient off;

      #smtp server
      server {
          listen     10.0.0.1:25;
          protocol   smtp;
          timeout    300s;
      }

      #pop3 server
      server {
          listen     10.0.0.1:110;
          protocol   pop3;
          proxy      on;
      }

      #imap server
      server {
          listen     10.0.0.1:143;
          protocol   imap;
          proxy      on;
      }
}




-- 
Best regards, Alexey Belousov
[no pasaran] [#lan_games] [bbg]

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2832 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20070730/be629b03/attachment.bin>


More information about the nginx-ru mailing list