HttpRuntimeSection.AppRequestQueueLimit Propriedade
Definição
Obtém ou define um valor que indica o número máximo de solicitações que o ASP.NET coloca na fila para o aplicativo.Gets or sets a value that indicates the maximum number of requests that ASP.NET queues for the application.
public:
property int AppRequestQueueLimit { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("appRequestQueueLimit", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
[System.Configuration.IntegerValidator(MinValue=1)]
public int AppRequestQueueLimit { get; set; }
[<System.Configuration.ConfigurationProperty("appRequestQueueLimit", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
[<System.Configuration.IntegerValidator(MinValue=1)>]
member this.AppRequestQueueLimit : int with get, set
Public Property AppRequestQueueLimit As Integer
Valor da propriedade
O número máximo de solicitações que podem ser colocadas na fila.The maximum number of requests that can be queued.
- Atributos
Exemplos
O exemplo a seguir mostra como usar a AppRequestQueueLimit propriedade.The following example shows how to use the AppRequestQueueLimit property.
// Get the AppRequestQueueLimit property value.
Response.Write("AppRequestQueueLimit: " +
configSection.AppRequestQueueLimit + "<br>");
// Set the AppRequestQueueLimit property value to 4500.
configSection.AppRequestQueueLimit = 4500;
' Get the AppRequestQueueLimit property value.
Response.Write("AppRequestQueueLimit: " & _
configSection.AppRequestQueueLimit & "<br>")
' Set the AppRequestQueueLimit property value to 4500.
configSection.AppRequestQueueLimit = 4500
Comentários
As filas do ASP.NET solicitam quando não há threads livres suficientes para processá-las.ASP.NET queues requests when there are not enough free threads to process them.
Observação
Quando o número de solicitações enfileiradas exceder o limite imposto por essa configuração, as solicitações de entrada serão rejeitadas com um erro "503-servidor muito ocupado".When the number of requests queued exceeds the limit imposed by this setting, incoming requests will be rejected with a "503 - Server Too Busy" error.