Compartir a través de


Modify the Request Queue Limit, requestQueueLimit or Queue Length in IIS 7

This article has been moved to its new home here:  https://benperk.github.io/msdn/2011/2011-11-modify-the-request-queue-limit-requestqueuelimit-or-queue-length-in-iis.html

When optimizing and tuning an ASP.NET application you may want to increase the value of the requestQueueLimit.  The requestQueueLimit is the maximum number of requests that can be queued by an ASP.NET process before errors get returned to the client.

Modify Request Queue Limit within the Aspnet.config

Below, the requestQueueLimit is configured in the Aspnet.config file for a 64 bit version of the .NET 4 Framework.  The Aspnet.config exists by default, for 64bit .Net 4, in the following directory:

C:\Windows\Microsoft.NET\Framework64\v4.0.30319

Adding the applicationPool element to the Aspnet.config, as shown in Figure 1, for the given .NET version means that all application pools running on IIS 7 in Integrated mode using this version of the .NET framework will be impacted by the modification.

Figure 1, settings for the applicationPool element.

Modify Queue Length for a given Application Pool

Below, shown in Figure 2, the Queue Length is configured from the Advanced Settings of a specific Application Pool.

Figure 2, settings for the application pool

The Queue Length is the maximum number of requests that will be queued, when exceeded new requests will receive a 503 “Service Unavailable” response.

Conclusion

In most cases the default configuration will work best, therefore only make modifications when you are certain of the need and impact.

Comments

  • Anonymous
    November 22, 2011
    your work is good and it is full of knowledge thanks for the share.
  • Anonymous
    January 02, 2012
    How can we monitor the current queue length in order to decide whether an increase is necessary?
  • Anonymous
    July 24, 2013
    If you are looking for more info on IIS  & ASP.NET request queues, this should help:blog.leansentry.com/.../all-about-iis-asp-net-request-queuesBest,Mike
  • Anonymous
    November 03, 2013
    I would like to know how can we change the  Value fo Queue length for a specific App Pool  using a powershell command or script. We have Multiple IIS servers and i would like to change this Value from default 1000 to 9000(Max). your suggestion will be appreciated.
  • Anonymous
    April 16, 2014
    Is there any way to set HTTP request queue limit for WCF service that is hosted outside of IIS?