Udostępnij za pośrednictwem


ProcessModelSection.RequestQueueLimit Właściwość

Definicja

Pobiera lub ustawia wartość wskazującą liczbę żądań dozwolonych w kolejce.

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

Wartość właściwości

Int32

Liczba żądań, które mogą być kolejkowane. Wartość domyślna to 5000.

Atrybuty

Przykłady

W poniższym przykładzie kodu pokazano, jak używać RequestQueueLimit właściwości.


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

Uwagi

Jeśli liczba żądań dozwolonych w kolejce zostanie przekroczona, ASP.NET zacznie zwracać błędy "503 — Serwer zbyt zajęty" do nowych żądań. Po osiągnięciu tego limitu system działa w nietypowych warunkach. Może to być objaw awarii, a może po prostu duże obciążenie. Ponowne uruchamianie (odbijanie) procesu roboczego może stać się jedynym sposobem zapobiegania dalszym problemom.

Dotyczy