共用方式為


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 - Server Too Busy」 錯誤傳回給新的要求。 達到此限制時,系統會以異常狀況運作。 這可能是問題或可能只是高負載的徵兆。 重新開機 () 背景工作進程可能會成為防止進一步問題的唯一方法。

適用於