共用方式為


ProcessModelSection.RequestQueueLimit 屬性

定義

接收或設定一個值,表示佇列中允許的請求數量。

public:
 property int RequestQueueLimit { int get(); void set(int value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteIntConverter))]
[System.Configuration.ConfigurationProperty("requestQueueLimit", DefaultValue=5000)]
[System.Configuration.IntegerValidator(MinValue=0)]
public int RequestQueueLimit { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteIntConverter))>]
[<System.Configuration.ConfigurationProperty("requestQueueLimit", DefaultValue=5000)>]
[<System.Configuration.IntegerValidator(MinValue=0)>]
member this.RequestQueueLimit : int with get, set
Public Property RequestQueueLimit As Integer

屬性值

允許排隊的請求數量。 預設值是5000。

屬性

範例

以下程式碼範例說明如何使用該 RequestQueueLimit 屬性。


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

// Set the RequestQueueLimit property to 10240.
processModelSection.RequestQueueLimit = 10240;
' Get the current RequestQueueLimit property value.
   Dim requestQueueLimit As Integer = _
   processModelSection.RequestQueueLimit

' Set the RequestQueueLimit property to 10240.
processModelSection.RequestQueueLimit = 10240

備註

若隊列中允許的請求數超過,ASP.NET 會開始對新請求回傳「503 - 伺服器過於繁忙」錯誤。 當達到此極限時,系統即處於異常狀態。 這可能是故障的症狀,或者只是負載過高。 重新啟動(跳彈)工作程序可能成為避免更多問題的唯一方法。

適用於