다음을 통해 공유


ProcessModelSection.MemoryLimit 속성

정의

허용되는 최대 메모리 크기를 나타내는 값을 가져오거나 설정합니다.

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

속성 값

전체 시스템 메모리의 백분율입니다. 기본값은 60%입니다.

특성

예제

다음 코드 예제에서는 속성에 액세스 하는 방법을 보여 있습니다 MemoryLimit .


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

설명

메모리 크기는 전체 시스템 메모리의 백분율로 표시됩니다. 이는 ASP.NET 다시 시작하기 전에 작업자 프로세스가 사용할 수 있는 메모리 양입니다(반송).

적용 대상