Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to understand the maximum number of concurrent connections in IIS

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article shows you how to understand the maximum number of concurrent connections in IIS. The content is concise and easy to understand, which will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

Maximum concurrent connections = queue length + number of worker threads

[number of working threads]

The number of requests that IIS can actually process in the first place.

Worker threads can be modified through Machine.config 's maxWorkerThreads

[queue length]

In addition to the number of IIS worker threads that can be processed at the first time, the number of requests that can enter the waiting queue to wait.

Number of worker threads = 100

Queue length = 5000

Then 10, 000 connection requests will come at the same time, 100 will be processed the first time, 5000 will wait, and 4900 will return at 503.

This can be modified in Application Pool-> ASP.NETv4.0Classic- > Advanced Settings-> queue length.

[maximum number of concurrent connections]

Number of worker threads = 100

Queue length = 5000

Maximum number of concurrent connections = 5000

Then 10, 000 connection requests will come at the same time, 100 will be processed the first time, 4900 will enter the queue and wait, and 5000 will return at 503.

If the maximum number of concurrent connections is 10000, then

Then 10, 000 connection requests will come at the same time, 100 will be processed the first time, 5000 will enter the queue and wait, and 4900 will return at 503.

This can be modified in IIS- > website (website to be modified)-> Advanced Settings-> maximum number of concurrent connections.

[webgarden]

IIS is a website that corresponds to an application pool, and an application pool defaults to a worker process. A worker process has a default number of worker threads (the worker thread can be modified through Machine.config 's maxWorkerThreads and has something to do with CPU). We can set the maximum worker process of the application pool to 2, which becomes a web garden. The corresponding worker thread also doubles as the worker process increases, but consider whether the cpu and memory consumption will be too large. The web garden is a direct manifestation of the two w3pw.exe processes that can be seen through the task manager.

The above content is how to understand the maximum number of concurrent connections in IIS. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report