HttpRuntimeSection.AppRequestQueueLimit Property

 

Gets or sets a value that indicates the maximum number of requests that ASP.NET queues for the application.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[ConfigurationPropertyAttribute("appRequestQueueLimit", DefaultValue = 5000)]
[IntegerValidatorAttribute(MinValue = 1)]
public int AppRequestQueueLimit { get; set; }

Property Value

Type: System.Int32

The maximum number of requests that can be queued.

ASP.NET queues requests when there are not enough free threads to process them.

System_CAPS_noteNote

When the number of requests queued exceeds the limit imposed by this setting, incoming requests will be rejected with a "503 - Server Too Busy" error.

The following example shows how to use the AppRequestQueueLimit property.

// Get the AppRequestQueueLimit property value.
Response.Write("AppRequestQueueLimit: " +
  configSection.AppRequestQueueLimit + "<br>");

// Set the AppRequestQueueLimit property value to 4500.
configSection.AppRequestQueueLimit = 4500;

.NET Framework
Available since 2.0
Return to top
Show: