Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configure Maximum Number of Requests in IIS Express

Tags:

iis-express

How can I configure the maximum number of requests allowed in IIS Express?

I would like to change this to only allow a few requests to test what happens when it exceeds the limit.

like image 491
Dismissile Avatar asked Jan 04 '12 17:01

Dismissile


1 Answers

IIS Express can be configured using applicationHost.config file. It is located at %userprofile%\my documents\IISexpress\config

Open this file in text editor. You will find <sites> element in <system.applicationHost> section. In that you will find a <site> element for each site hosted on IIS express. Find the element corresponding to your site. Add a <limits> element as shown below.

<sites>
  <!-- Other sites -->

  <site name="YourSiteName" id="YourSiteId">
    <!-- Existing elements -->

    <limits maxBandwidth="65536" maxConnections="1024" connectionTimeout="00:01:00" />
  </site>

  <!-- Remaining sites -->
</site>

You can set maxConnections parameter to desired number of requests.

This should work though I have not tested it.

like image 146
Kedar Vaidya Avatar answered Sep 30 '22 08:09

Kedar Vaidya