﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
1610	Writing connections counter leak in stub_status.	dyeldandi@…		"Writing connections counter as reported by stub_status is slowly growing up.

{{{
Active connections: 23374 
server accepts handled requests
 993360041 993360041 11278418586 
Reading: 0 Writing: 13887 Waiting: 12213 
}}}

However netstat shows fewer connections

{{{
# netstat -anp | grep -v CLOSE_WAIT | grep -c nginx  
12137
}}}

If I restart nginx the number of writing connections drops down to 300-ish, which is close to expected value

{{{
Active connections: 12130 
server accepts handled requests
 26485 26485 198399 
Reading: 0 Writing: 277 Waiting: 11817 
}}}

but after a week or two it would gradually grow up to same large value (thousands).


In average it's receiving about 2000 requests per second, and I can't find an exact request that would increase writing connections counter permanently. However I think this problem started when we moved to http/2 (not completely sure though)."	defect	closed	major		other	1.12.x	duplicate			Linux hostname 2.6.32-696.6.3.el6.x86_64 #1 SMP Wed Jul 12 14:17:22 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux	"nginx version: nginx/1.12.2
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC) 
built with OpenSSL 1.0.2l  25 May 2017
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib64/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-openssl=openssl-1.0.2l --with-openssl-opt=shared --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --add-dynamic-module=nginx-vod-module-1.22 --with-http_geoip_module=dynamic --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --with-ld-opt='-Wl,-z,relro -Wl,-z,now -pie'
"
