Compartir por


ProcessModelSection.RequestQueueLimit Propiedad

Definición

Obtiene o establece un valor que indica el número de solicitudes permitidas en la cola.

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

Valor de propiedad

Número de solicitudes que se pueden poner en cola. El valor predeterminado es 5000.

Atributos

Ejemplos

En el ejemplo de código siguiente se muestra cómo usar la RequestQueueLimit propiedad .


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

Comentarios

Si se supera el número de solicitudes permitidas en la cola, ASP.NET comienza a devolver errores "503 - Servidor demasiado ocupado" a las nuevas solicitudes. Cuando se alcanza este límite, el sistema funciona en condiciones anómalas. Esto puede ser un síntoma de un mal funcionamiento o, quizás, simplemente una carga alta. Reiniciar (rebotar) el proceso de trabajo podría convertirse en la única manera de evitar problemas adicionales.

Se aplica a