Thursday, November 30, 2006

QA - Maximizing IIS6 Concurrent Connections

Question:

Dear All,

We are using Win 2003 sp1 with IIS 6.0 installed Default website properties connection set to 30 sec Running IIS with ASP Files, all working good

The problem is: when we have 10,000 con current session on the server, the IIS Stop Responding on port 80 and the clients get error Connection TimeOut ,

Is there any IIS or Port 80 Limits

Any Advice will be appreciated ?

p.s

the server CPU and memory are very Low

Thanks

Answer:

The connection limit you observe comes from HTTP.SYS because each HTTP connection takes a small chunk of kernel NonPagedPool memory.

On 32bit Windows, this memory is FAR smaller than the amount of physical memory available, around 250MB, and it will usually run out long before available physical memory and cause symptoms that look like this... especially if you have long-lived concurrent connections.

Thus, to maximize the number of concurrent users to IIS6, you want to do all of the following:

  • Make the connections timeout faster (ConnectionTimeout metabase property).
  • Make the connections non-keepalive (AllowKeepAlive metabase property).
  • Remove any of the following artificial limits.

    But, remember that HTTP.SYS is still constrained by available NonPagedPool memory, so this change only helps if you had an artificially lower limit to begin with (i.e. on 32bit Windows, if MaxConnections was set to 5,000 for whatever reason, you can remove the artificially lower limit by changing it to 100,000, but you will never get to 100K).

  • Move to a Windows OS with a Memory Manager that utilizes the Dynamic Memory model, such as Windows Server 2003 SP1 64bit or Windows Vista.

    This memory model removes all the hard-coded and soft-coded limits on various memory pools of Windows, such as NonPagedPool, and allows them to dynamically grow and shrink according to utilization and up to all available physical memory. This means you can add more concurrent connections by simply adding more RAM.

All of the above are EXACTLY what microsoft.com and msn.com does across all their servers that serve low-latency, high-volume traffic - such as their image servers that house static content shared across the entire web farm. At a massive scale, the speed gained from KeepAlive is not worth the concurrent users capacity lost by consuming kernel NonPagedPool memory, and they remove both artificial and soft-coded limits of NonPagedPool memory by using Windows Server 2003 SP1 64bit.

Good luck,

//David

17 comments:

Anonymous said...

You Are Wonderful, MAN

This is the best great info, thank you!

Keep the good working with your information

shr..

Anonymous said...

The one following on the heels of lv bags is Louis Vuitton Monogram Canvas Tivoli GM. This cheap louis vuitton bags applies wrinkled Monogram canvas with the appearance like the bowling bag. It is finished with retaining screws at the bottom. Being so soft, it is particularly suitable for daily use. It can be carried on the shoulder or handheld. This lv bag was named after a well-known town of Lazio region of Italy.

Anonymous said...

However, ugg boots which owns a array of acclaimed designers, not abandoned delights women by contemporary styles, but aswell by absolute abundance and practicality.Sheepskin ugg is absolutely crafted from wool. Many times, uggs are befuddled abroad because they get adulterated or channelled afterwards getting beat for one season, instead of acceptable out of date. There are lots of styles in the accumulating of affidavit ugg sundance , accoutrement tall, abbreviate and abate versions. Due to adaptable sheepskin, these ugg sundance boots do not get channelled or torn even admitting you bend and extend them times.

wholesalers said...

Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with more information? It is extremely helpful for me,wholesalers

wholesale said...

your wrists look more beautiful. Tradition unexplained that the means range is a distinctive.wholesale

buy wholesale said...

good post,i love it,expect your more articles.
buy wholesale

Wholesale Electronics said...

I am very grateful to you for the information. It was useful to me.

Good buddy said...

We should limit concurrent connections in IIS to avoid some clients use so much connections http://ecodetip.com/server-administration/36-iis/60-how-to-limit-concurrent-connections-per-ip-in-iis

Url above said...

Click on my name to go to tut URL

wholesale said...

hey, nice blog…really like it and added to bookmarks. keep up with good work.wholesale

wholesalers said...

Very creative, one of the nicer sites I have seen today. Keep up the great work
wholesalers

buy wholesale said...

I have never read such a wonderful article and I am coming back tomorrow to continue reading.
buy wholesale

Green Laser Pointer said...

This is a great article thanks for sharing this informative information.. I will visit your blog regularly for some latest post.
Green Laser Pointer

100mw laser said...

That is fantastic. Thanks for the link. A great idea for a book!
100mw laser

wholesalers said...

good post,i like it very much.

Wholesale said...

expect you more post.

buy wholesale said...

wow!good!expect you more post.