ProcessModelSection.RequestQueueLimit Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets a value indicating the number of requests allowed in the queue.

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

[ConfigurationPropertyAttribute("requestQueueLimit", DefaultValue = 5000)]
[TypeConverterAttribute(typeof(InfiniteIntConverter))]
[IntegerValidatorAttribute(MinValue = 0)]
public int RequestQueueLimit { get; set; }

Property Value

Type: System.Int32

The number of requests allowed to be queued. The default is 5000.

If the number of requests allowed in the queue is exceeded, ASP.NET begins returning "503 – Server Too Busy" errors to new requests. When this limit is reached, the system is operating in abnormal conditions. This might be a symptom of a malfunction or, maybe, just high load. Restarting (bouncing) the worker process might become the only way to prevent further problems.

The following code example shows how to use the RequestQueueLimit property.


// Get the current RequestQueueLimit property value.
int requestQueueLimit =
    processModelSection.RequestQueueLimit;

// Set the RequestQueueLimit property to 10240.
processModelSection.RequestQueueLimit = 10240;

.NET Framework
Available since 2.0
Return to top
Show: