ProcessModelSection.MemoryLimit Propriedade

Definição

Recebe ou define um valor que indica o tamanho máximo permitido de memória.

public:
 property int MemoryLimit { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("memoryLimit", DefaultValue=60)]
public int MemoryLimit { get; set; }
[<System.Configuration.ConfigurationProperty("memoryLimit", DefaultValue=60)>]
member this.MemoryLimit : int with get, set
Public Property MemoryLimit As Integer

Valor de Propriedade

A percentagem da memória total do sistema. O padrão é 60 por cento.

Atributos

Exemplos

O seguinte exemplo de código mostra como aceder à MemoryLimit propriedade.


 // Get the current MemoryLimit property value.
int memLimit = processModelSection.MemoryLimit;

 // Set the MemoryLimit property to 50.
 processModelSection.MemoryLimit = 50;
' Get the current MemoryLimit property value.
   Dim memLimit As Integer = _
   processModelSection.MemoryLimit

' Set the MemoryLimit property to 50.
processModelSection.MemoryLimit = 50

Observações

O tamanho da memória é expresso como uma percentagem da memória total do sistema. Esta é a quantidade de memória que um processo worker pode consumir antes de o ASP.NET o reiniciar (fazer bounces).

Aplica-se a