active connections of nginx continually increase

Maxim Dounin mdounin at mdounin.ru
Sun May 27 17:19:11 UTC 2012


Hello!

On Fri, May 25, 2012 at 11:58:22AM -0400, tntzwz wrote:

> I have several nginx web servers as reverse proxy. 
> 
> I found out that  the active connections(including reading writing and
> waiting , seen from  http_stub_status module)  in some of the
> servers(not all of them) are keep growing
> from 3000 to 5000, 10000 .... 10k ... 50k, and never reduce even in the
> late night.
> 
> at the same time , I got a more reliable number from netstat
>     netstat -nap | grep 80 | grep EST  | wc -l
>     2743

[...]

>     nginx -V
>     nginx version: Nginx/1.0.14
>     built by gcc 4.1.2 20080704 (Red Hat 4.1.2-44)
>     TLS SNI support disabled
>     configure arguments: --prefix=/home/web/nginx/ --user=nobody
> --group=nobody 
>     --with-    http_ssl_module --with-http_sub_module
> --with-http_dav_module 
>     --with-http_flv_module --    with-http_gzip_static_module 
>     --with-http_stub_status_module
> --http-proxy-temp-path=/home/web/nginx/data/proxy 
>     --http-fastcgi-temp-path=/home/web/nginx/data/fastcgi 
>     --http-client-body-temp-path=/home/web/nginx/data/client
> --with-pcre=../pcre-7.9 
>     --add-module=../ngx_http_upstream_keepalive-d7643c291ef0 
>     --add-module=../hmux/ --add-module=../nginx-sticky-module-1.0/ 
>     --with-google_perftools_module
> --add-module=../nginx_upstream_check_module-660183a

Obvious suggestion is: try compiling nginx without any third party 
modules and patches.

Maxim Dounin



More information about the nginx mailing list