Process.MaxWorkingSet 속성

정의

연결된 프로세스에 대한 최대 허용 작업 집합 크기(바이트)를 가져오거나 설정합니다.

public:
 property IntPtr MaxWorkingSet { IntPtr get(); void set(IntPtr value); };
public IntPtr MaxWorkingSet { get; [System.Runtime.Versioning.SupportedOSPlatform("windows")] set; }
public IntPtr MaxWorkingSet { [System.Runtime.Versioning.UnsupportedOSPlatform("ios")] [System.Runtime.Versioning.UnsupportedOSPlatform("tvos")] get; [System.Runtime.Versioning.SupportedOSPlatform("windows")] [System.Runtime.Versioning.SupportedOSPlatform("freebsd")] [System.Runtime.Versioning.SupportedOSPlatform("macos")] set; }
public IntPtr MaxWorkingSet { [System.Runtime.Versioning.UnsupportedOSPlatform("ios")] [System.Runtime.Versioning.UnsupportedOSPlatform("tvos")] [System.Runtime.Versioning.SupportedOSPlatform("maccatalyst")] get; [System.Runtime.Versioning.SupportedOSPlatform("windows")] [System.Runtime.Versioning.SupportedOSPlatform("freebsd")] [System.Runtime.Versioning.SupportedOSPlatform("macos")] [System.Runtime.Versioning.SupportedOSPlatform("maccatalyst")] set; }
public IntPtr MaxWorkingSet { get; set; }
[<set: System.Runtime.Versioning.SupportedOSPlatform("windows")>]
member this.MaxWorkingSet : nativeint with get, set
[<set: System.Runtime.Versioning.SupportedOSPlatform("windows")>]
[<get: System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<get: System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<set: System.Runtime.Versioning.SupportedOSPlatform("freebsd")>]
[<set: System.Runtime.Versioning.SupportedOSPlatform("macos")>]
member this.MaxWorkingSet : nativeint with get, set
[<set: System.Runtime.Versioning.SupportedOSPlatform("windows")>]
[<get: System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<get: System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<set: System.Runtime.Versioning.SupportedOSPlatform("freebsd")>]
[<set: System.Runtime.Versioning.SupportedOSPlatform("macos")>]
[<get: System.Runtime.Versioning.SupportedOSPlatform("maccatalyst")>]
[<set: System.Runtime.Versioning.SupportedOSPlatform("maccatalyst")>]
member this.MaxWorkingSet : nativeint with get, set
member this.MaxWorkingSet : nativeint with get, set
Public Property MaxWorkingSet As IntPtr

속성 값

IntPtr

nativeint

프로세스에 대해 메모리에서 허용된 작업 집합의 최대 크기(바이트)입니다.

특성

예외

최대 작업 집합 크기가 잘못 되었습니다. 최소 작업 집합 크기보다 크거나 같아야 합니다.

작업 집합 정보를 연결된 프로세스 리소스에서 검색할 수 없습니다.

또는

프로세스가 시작되지 않아서 프로세스 식별자 또는 프로세스 핸들이 0입니다.

원격 컴퓨터에서 실행 중인 프로세스에 대한 MaxWorkingSet 속성에 액세스하려고 합니다. 이 속성은 로컬 컴퓨터에서 실행되는 프로세스에만 사용할 수 있습니다.

Id 프로세스를 사용할 수 없습니다.

또는

프로세스가 종료되었습니다.

설명

프로세스의 작업 세트는 현재 물리적 RAM 메모리의 프로세스에 표시되는 메모리 페이지 세트입니다. 이러한 페이지는 상주 하며 페이지 오류를 일으키지 않고 애플리케이션에 사용할 수 있습니다.

작업 집합에는 공유 데이터와 프라이빗 데이터가 모두 포함됩니다. 공유 데이터에는 system.dll 파일과.dll 파일에서 페이지를 포함 하 여 애플리케이션을 실행 하는 모든 지침을 포함 하는 페이지를 포함 합니다. 작업 집합 크기가 증가함에 따라 메모리 수요가 증가합니다.

프로세스에는 최소 및 최대 작업 집합 크기가 있습니다. 프로세스 리소스를 만들 때마다 시스템은 프로세스의 최소 작업 집합 크기와 동일한 양의 메모리를 예약합니다. 가상 메모리 관리자는 프로세스가 활성 상태일 때 최소 메모리 양을 유지하려고 시도하지만 최대 크기 이상으로 유지되지는 않습니다.

시스템은 기본 작업 집합 크기를 설정합니다. 및 MinWorkingSet 멤버를 사용하여 이러한 크기를 수정할 MaxWorkingSet 수 있습니다. 그러나 이러한 값을 설정해도 메모리가 예약되거나 상주한다는 보장은 없습니다.

참고

프로세스의 작업 집합 크기를 늘리면 시스템의 나머지 부분으로부터 실제 메모리를 제거합니다. 너무 큰 최소 또는 최대 작업 집합 크기를 요청하지 않는지 확인합니다. 이렇게 하면 시스템 성능이 저하될 수 있기 때문입니다.

적용 대상

추가 정보