# Nginx status active connections

**URL:** <https://www.ruby-forum.com/t/nginx-status-active-connections/217684>\
**Category:** NGINX\
**Created:** [March 8, 2012, 3:38pm UTC](https://www.ruby-forum.com/t/nginx-status-active-connections/217684 "2012-03-08T15:38:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [March 8, 2012, 3:38pm UTC](https://www.ruby-forum.com/t/nginx-status-active-connections/217684/1 "2012-03-08T15:38:21Z")

</div>

Hi,

We do have a few high load web servers behind two load balancers running  
\*  
nginx/1.0.0\*  
I upgraded two of them to _nginx/1.0.12_ all servers are running well  
despite the version of nginx  
However I’ve noticed that there is a big difference in active  
connections  
between the old version  
and the new version.

What do you think about it, is it bad or good.

_nginx/1.0.12_  
_Linux 2.6.18-194.17.1.el5 #1 SMP Wed Sep 29 12:50:31 EDT 2010 x86\_64  
GNU/Linux_  
_CentOS release 5.7 (Final)_  
\*Active connections: 117 \*  
_server accepts handled requests_

- 12710947 12710947 12710947 \*  
\*Reading: 0 Writing: 117 Waiting: 0 \*
- 
- 

_nginx/1.0.12_  
_Linux 2.6.18-274.12.1.el5 #1 SMP Tue Nov 29 13:37:46 EST 2011 x86\_64  
GNU/Linux_  
_CentOS release 5.7 (Final)_  
\*Active connections: 74 \*  
_server accepts handled requests_

- 31879742 31879742 31879741 \*  
\*Reading: 0 Writing: 74 Waiting: 0 \*

_nginx/1.0.0_  
Linux 2.6.18-238.9.1.el5 #1 SMP Tue Apr 12 18:10:13 EDT 2011 x86\_64  
GNU/Linux  
CentOS release 5.6 (Final)  
Active connections: 1  
server accepts handled requests  
1745405552 1745405552 1745405549  
Reading: 0 Writing: 1 Waiting: 0

_nginx/1.0.0_  
Linux 2.6.18-238.9.1.el5 #1 SMP Tue Apr 12 18:10:13 EDT 2011 x86\_64  
GNU/Linux  
CentOS release 5.6 (Final)  
Active connections: 1  
server accepts handled requests  
1777800935 1777800935 1777800935  
Reading: 0 Writing: 1 Waiting: 0

_nginx/1.0.0_  
Linux 2.6.18-238.9.1.el5 #1 SMP Tue Apr 12 18:10:13 EDT 2011 x86\_64  
GNU/Linux  
CentOS release 5.6 (Final)  
Active connections: 6  
server accepts handled requests  
638878235 638878235 638878235  
Reading: 0 Writing: 6 Waiting: 0

_nginx/1.0.0_  
Linux 2.6.18-238.9.1.el5 #1 SMP Tue Apr 12 18:10:13 EDT 2011 x86\_64  
GNU/Linux  
CentOS release 5.6 (Final)  
Active connections: 5  
server accepts handled requests  
1785279854 1785279854 1785279852  
Reading: 0 Writing: 5 Waiting: 0

_nginx/1.0.0_  
Linux 2.6.18-238.9.1.el5 #1 SMP Tue Apr 12 18:10:13 EDT 2011 x86\_64  
GNU/Linux  
CentOS release 5.6 (Final)  
Active connections: 4  
server accepts handled requests  
1795180194 1795180194 1795180190  
Reading: 0 Writing: 4 Waiting: 0

_nginx/1.0.0_  
Linux 2.6.18-238.9.1.el5 #1 SMP Tue Apr 12 18:10:13 EDT 2011 x86\_64  
GNU/Linux  
CentOS release 5.6 (Final)  
Active connections: 4  
server accepts handled requests  
1792770090 1792770090 1792770085  
Reading: 0 Writing: 4 Waiting: 0

_nginx/1.0.0_  
Linux 2.6.18-274.12.1.el5 #1 SMP Tue Nov 29 13:37:46 EST 2011 x86\_64  
GNU/Linux  
CentOS release 5.7 (Final)  
Active connections: 6  
server accepts handled requests  
1374777486 1374777486 1374777465  
Reading: 0 Writing: 6 Waiting: 0

## Best Regards \*

- 

_Iqbal A._  
_+212 665 025 032_  
_removed\_email\_address@domain.invalid_

---

<div class="post-metadata">

**Author:** ![Iqbal\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/c37758/32.png) [@Iqbal\_A](https://www.ruby-forum.com/u/Iqbal_A)\
**Post date:** [March 10, 2012, 9:50pm UTC](https://www.ruby-forum.com/t/nginx-status-active-connections/217684/2 "2012-03-10T21:50:05Z")

</div>

Hello!

On Thu, Mar 08, 2012 at 02:37:37PM +0000, Iqbal A. wrote:

> What do you think about it, is it bad or good.  
> This is likely due to lingering close changes in 1.0.6:

```
*) Bugfix: in closing connection for pipelined requests.

```

You may fine-tune the behaviour via lingering\_close,  
lingering\_time and lingering\_timeout directives (see  
[Module ngx\_http\_core\_module](http://nginx.org/r/lingering_close)), though I would rather  
recommend to keep the default.

Maxim D.

---

<div class="post-metadata">

**Author:** ![Iqbal\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/c37758/32.png) [@Iqbal\_A](https://www.ruby-forum.com/u/Iqbal_A)\
**Post date:** [March 12, 2012, 4:08pm UTC](https://www.ruby-forum.com/t/nginx-status-active-connections/217684/3 "2012-03-12T16:08:24Z")

</div>

Hi Maxim,

Thanks a lot for you help.

Best Regards  
\*

–  
\*  
_Iqbal A._  
_+212 665 025 032_  
_removed\_email\_address@domain.invalid_
