Welcome! Log In Create A New Profile

Advanced

Re: Утечка сокетов

Igor Sysoev
January 06, 2010 02:38AM
On Wed, Jan 06, 2010 at 10:26:47AM +0300, Михаил Монашёв wrote:

> Много раз в листе поднималась эта тема. Утечка может прекратиться,
> если выкинуть nginx_upload_module-2.0.11 и
> nginx_uploadprogress_module-0.7 .

Не обязательно. Проблема может быть и в aio.
Можно попробовать выключить aio.

> AI> При некотором достаточно большом числе активных соединений (~6K) имею
> AI> вышеозначенную проблему - постоянно растущее количество соединений в состоянии
> AI> CLOSED. С debug_points abort удалось получить несколько корок на выходе.
>
> AI> nginx version: nginx/0.8.31
> AI> configure arguments: --prefix=/usr/local/etc/nginx
> AI> --with-cc-opt='-I /usr/local/include' --with-ld-opt='-L
> AI> /usr/local/lib' --conf-path=/usr/local/etc/nginx/nginx.conf
> AI> --sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid
> AI> --error-log-path=/var/log/nginx-error.log --user=www --group=www
> AI> --with-debug --with-file-aio
> AI> --http-client-body-temp-path=/var/tmp/nginx/client_body_temp
> AI> --http-proxy-temp-path=/var/tmp/nginx/proxy_temp
> AI> --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp
> AI> --http-log-path=/var/log/nginx-access.log --with-http_geoip_module
> AI> --with-http_stub_status_module
> AI> --add-module=/usr/ports/www/nginx-devel/work/nginx_upload_module-2.0.11
> AI> --add-module=/usr/ports/www/nginx-devel/work/nginx_uploadprogress_module-0.7
> AI> --with-pcre
>
> AI> Данные из корки по некоторым из таких соединений:
>
> AI> discard_body 0
> AI> lingering_close 0
> AI> lingering_time 0
> AI> keepalive 0
> AI> $3 = 0x447d30 <ngx_http_test_reading>
> AI> $4 = 0x447860 <ngx_http_writer>
> AI> $5 = 0x4a7ac2 "sending response to client"
> AI> $6 = (ngx_int_t (*)(ngx_http_request_t *, ngx_chain_t *))
> AI> 0x468640 <ngx_http_range_body_filter>
> AI> kq_errno 0
> AI> pending_eof 0
> AI> single_connection 0
> AI> unexpected_eof 0
> AI> timedout 0
> AI> error 0
> AI> destroyed 0
> AI> idle 0
> AI> close 0
> AI> sendfile 0
> AI> sndlowat 0
> AI> status 200
> AI> count 1
> AI> blocked 1
> AI> sent 629145912
> AI> length -1
> wev->>timedout 0
> wev->>active 1
> r->>aio 1
> wev->>delayed 0
> wev->>ready 1
>
> AI> discard_body 0
> AI> lingering_close 0
> AI> lingering_time 0
> AI> keepalive 0
> AI> $3 = 0x447c80 <ngx_http_block_reading>
> AI> $4 = 0x448f00 <ngx_http_request_empty_handler>
> AI> $5 = 0x4a7566 "sending to client"
> AI> $6 = (ngx_int_t (*)(ngx_http_request_t *, ngx_chain_t *))
> AI> 0x468640 <ngx_http_range_body_filter>
> AI> kq_errno 54
> AI> pending_eof 1
> AI> single_connection 0
> AI> unexpected_eof 0
> AI> timedout 0
> AI> error 1
> AI> destroyed 0
> AI> idle 0
> AI> close 0
> AI> sendfile 0
> AI> sndlowat 0
> AI> status 200
> AI> count 1
> AI> blocked 0
> AI> sent 6553888
> AI> length -1
> wev->>timedout 1
> wev->>active 1
> r->>aio 0
> wev->>delayed 1
> wev->>ready 1
>
>
>
> AI> _______________________________________________
> AI> nginx-ru mailing list
> AI> nginx-ru@nginx.org
> AI> http://nginx.org/mailman/listinfo/nginx-ru
>
>
>
>
> --
>
> С уважением,
> Михаил Монашёв, SoftSearch.ru
> mailto:postmaster@softsearch.ru
> ICQ# 166233339
> http://michael.mindmix.ru/
> Без бэкапа по жизни.
>
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@nginx.org
> http://nginx.org/mailman/listinfo/nginx-ru

--
Игорь Сысоев
http://sysoev.ru

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

Утечка сокетов

Artemiev Igor January 06, 2010 01:20AM

Re: Утечка сокетов

Михаил Монашёв January 06, 2010 02:28AM

Re: Утечка сокетов

Igor Sysoev January 06, 2010 02:38AM

Re: Утечка сокетов

Artemiev Igor January 06, 2010 12:46PM

Re[2]: Утечка сокетов

Михаил Монашёв January 06, 2010 05:04PM

Re: Утечка сокетов

Sergey A. Osokin January 06, 2010 03:12AM

Re: Утечка сокетов

Artemiev Igor January 06, 2010 08:28PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 222
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready