Aracılığıyla paylaş


ProcessModelSection.RequestQueueLimit Özellik

Tanım

Kuyrukta izin verilen istek sayısını belirten bir değer alır veya ayarlar.

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

Özellik Değeri

Int32

Kuyruğa alınmasına izin verilen istek sayısı. Varsayılan değer 5000'dir.

Öznitelikler

Örnekler

Aşağıdaki kod örneği özelliğinin RequestQueueLimit nasıl kullanılacağını gösterir.


// 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

Açıklamalar

Kuyrukta izin verilen istek sayısı aşılırsa, ASP.NET yeni isteklere "503 - Sunucu Çok Meşgul" hataları döndürmeye başlar. Bu sınıra ulaşıldığında sistem anormal koşullarda çalışır. Bu bir arıza belirtisi veya belki de yüksek yük olabilir. Çalışan işleminin yeniden başlatılması (zıplaması) başka sorunları önlemenin tek yolu olabilir.

Şunlara uygulanır