How to limit traffic for the whole server with IIS7?
There is a limit feature for a site, but it works only for a separate site:
Also there is Bitrate Throtting plugin for IIS, but as I know it can be configured only for a separate user:
Is there a way to configure traffic limits for the whole server, not for a single web-site?
UPDATE:
The solution is (thanks to @Arpit) setting <webLimits maxGlobalBandwidth="1000000" />
to machine config. But be careful! There is an error in IIS docs: you should type maxGlobalBand[w]idth
(with lower case w
), not maxGlobalBand[W]idth
(with upper case W
).
By default IIS 8.5 can handle 5000 concurrent requests as per MaxConcurrentRequestsPerCPU settings in aspnet. config. In machine. config, the maxconnection is 2 per CPU as default.
Provides support for HTML Web sites and optional support for ASP.NET, Classic ASP, and Web server extensions. Installs support for static Web server content such as HTML & image files, custom errors, and redirection.
From the Actions pane on the right hand side of the screen click Edit Feature Settings... link. The Edit Request Filtering Settings window displays. In the Request Limits section, enter the appropriate Maximum allowed content length (Bytes) and then click the OK button.
Well, I have not tried it yet but you can give it a go -
In IIS7, Select the server and open the Configuration Editor. On the right hand pane, there is an option to search the configuration. We are looking for webLimits
here.
This might be the key. More information about webLimits
can be found here
EDIT -
I found this attribute for webLimits
which should help :
maxGlobalBandwidth
- Specifies the maximum total bandwidth for the server. Setting the value to 0 enables unlimited bandwidth for the server.
The default value is 4294967295.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With