Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

The following stats are from a site where nginx was placed in front of a webserver to deliver static files and let the CMS application on the legacy webserver focus on the dynamic work. This is done via the nginx HttpProxyModule on the same physical machine.

The stats are created by the nginx_combined_v2 munin plugin.

The main HTML file loads about 8 CSS files, about 10 js files (and about 5 more, but from external sites) and almost 200 inline elements which results in up to 2-4 megs of data. Don't ask.

There's a lot of caching involved to handle the load and the user experience is fine (for the non-mobile users, of course ;-)

I wonder if I should worry about the high values of "Waiting" connections or if this is just a usual pattern when such huge numbers of inline-elements are involved?

As the legacy server has less load now than before I don't assume that nginx has to wait a long time for the backend.

Stats by day

The stats by week show nicely the peeks during the day when people should actually work not surf the net ;-)

Stats by week

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Waiting connections is not a very big problem - it's connections in keepalive state. But they are still using some system resources (memory for storing file handle, network buffers, etc). So it's best to keep keepalive_timeout as low as possible (but lower values might require some users to re-establish connections often, so you'll need to find out good value for your workload).

share|improve this answer
    
So if I would turn off keepalive completely I would see 0 waiting connections? Is it really completely related to keepalive connections? –  initall Apr 11 '11 at 10:35
    
Well, I'm not 100% sure that all waiting connections caused by keepalive, but when I'm increasing/decreasing keepalive_timeout, number of waiting connections relatively changes. –  rvs Apr 11 '11 at 11:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.