다음을 통해 공유


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

속성 값

Int32

총 시스템 메모리의 비율입니다. 기본값은 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 (바운스)를 다시 시작 되기 전에 작업자 프로세스가 소비할 수 있는 메모리의 양을 것입니다.

적용 대상