Поделиться через


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 — слишком занят сервер" в новые запросы. По достижении этого предела система работает в ненормальных условиях. Это может быть симптомом сбоя или, возможно, просто высокой нагрузки. Перезапуск (отказ) рабочий процесс может стать единственным способом предотвращения дальнейших проблем.

Применяется к