Muokkaa

Jaa


HttpRuntimeSection.AppRequestQueueLimit Property

Definition

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

public:
 property int AppRequestQueueLimit { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("appRequestQueueLimit", DefaultValue=5000)]
[System.Configuration.IntegerValidator(MinValue=1)]
public int AppRequestQueueLimit { get; set; }
[<System.Configuration.ConfigurationProperty("appRequestQueueLimit", DefaultValue=5000)>]
[<System.Configuration.IntegerValidator(MinValue=1)>]
member this.AppRequestQueueLimit : int with get, set
Public Property AppRequestQueueLimit As Integer

Property Value

The maximum number of requests that can be queued.

Attributes

Examples

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;
' Get the AppRequestQueueLimit property value.
Response.Write("AppRequestQueueLimit: " & _
  configSection.AppRequestQueueLimit & "<br>")

' Set the AppRequestQueueLimit property value to 4500.
configSection.AppRequestQueueLimit = 4500

Remarks

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

Note

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.

Applies to