Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS7: limit traffic for the server

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:

enter image description here

Also there is Bitrate Throtting plugin for IIS, but as I know it can be configured only for a separate user:

enter image description here

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).

like image 397
Vladimir Avatar asked Dec 19 '12 08:12

Vladimir


People also ask

How many connections can IIS handle?

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.

What is IIS7 used for?

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.

How do I increase my request limit in IIS?

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.


1 Answers

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.

like image 150
Arpit Avatar answered Oct 05 '22 00:10

Arpit