# Questions about stub status numbers

**URL:** <https://www.ruby-forum.com/t/questions-about-stub-status-numbers/213252>\
**Category:** NGINX\
**Created:** [October 27, 2011, 9:58pm UTC](https://www.ruby-forum.com/t/questions-about-stub-status-numbers/213252 "2011-10-27T21:58:35Z")\
**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:** [October 27, 2011, 9:58pm UTC](https://www.ruby-forum.com/t/questions-about-stub-status-numbers/213252/1 "2011-10-27T21:58:35Z")

</div>

Below is a snapshot of what the stub status returns:

Active connections: 2617 server accepts handled requests 15883769  
15883769 52195337 Reading: 96 Writing: 56 Waiting: 2465

Is the fact that we have 2K+ processes waiting a problem, meaning, on a  
high  
traffic, optimized server, should the number of waiting connections be  
much  
less?

Let me ask different, is having 2K+ connections waiting considered a  
problem? Should that number ideally be as close to “0” as possible?

Thanks

–

Ilan B.  
Chief Technology Officer

> **[Time4Learning.com](https://www.time4learning.com)**
>
> Award-winning online curriculum teaching math, language arts, science, social studies and more! Great for homeschool, afterschool & summer use.

6300 NE 1st Ave., Suite 203  
Ft. Lauderdale, FL 33334  
(954) 771-0914

[http://www.twitter.com/time4learning](http://www.twitter.com/time4learning)  
[http://www.facebook.com/Time4Learning](http://www.facebook.com/Time4Learning)

[Time4Learning.com](http://Time4Learning.com) - Online interactive curriculum for home use, PreK-8th  
Grade.  
[Time4Writing.com](http://Time4Writing.com) - Online writing tutorials for high, middle, and  
elementary  
school students.  
[Time4Learning.net](http://Time4Learning.net) - A forum to chat with parents online about kids,  
education, parenting and more.  
[spellingcity.com](http://spellingcity.com) - Online vocabulary and spelling activities for  
teachers,  
parents and students.

---

<div class="post-metadata">

**Author:** ![iberci](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/a3d4f5/32.png) [@iberci](https://www.ruby-forum.com/u/iberci)\
**Post date:** [October 27, 2011, 11:03pm UTC](https://www.ruby-forum.com/t/questions-about-stub-status-numbers/213252/2 "2011-10-27T23:03:25Z")

</div>

> Is the fact that we have 2K+ processes waiting a problem, meaning, on a  
> high traffic, optimized server, should the number of waiting connections  
> be much less?  
> Let me ask different, is having 2K+ connections waiting considered a  
> problem? Should that number ideally be as close to “0” as possible?

No and no. In fact on high traffic server there could be even more.  
Waiting are just keepalive connections. It is also mentioned in  
documentation: [http://wiki.nginx.org/HttpStubStatusModule#stub\_status](http://wiki.nginx.org/HttpStubStatusModule#stub_status)

rr

---

<div class="post-metadata">

**Author:** ![iberci](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/a3d4f5/32.png) [@iberci](https://www.ruby-forum.com/u/iberci)\
**Post date:** [October 28, 2011, 12:02pm UTC](https://www.ruby-forum.com/t/questions-about-stub-status-numbers/213252/3 "2011-10-28T12:02:32Z")

</div>

On 10/27/11 23:57, Ilan B. wrote:

> Is the fact that we have 2K+ processes waiting a problem, meaning, on a high  
> traffic, optimized server, should the number of waiting connections be much  
> less?

It is normal if keep-alive enabled. 2k+ is a small number for big site.  
And in most cases you should not disable keep-alive.

> Let me ask different, is having 2K+ connections waiting considered a problem?  
> Should that number ideally be as close to “0” as possible?

No.

But don’t forget to tune server - rise maxfiles, maxsockets and  
worker\_connections if this number will be close to current limits.

About stab\_status numbers - graph them (e. g. by rrdtool) and see trends  
on  
graph. Is some number stable for a long time, and then grow rapidly -  
this can  
be problem indicator.

–  
Anton Y.
