Process.MaxWorkingSet 속성

정의

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

public:
 property IntPtr MaxWorkingSet { IntPtr get(); void set(IntPtr value); };
public IntPtr MaxWorkingSet { [System.Runtime.Versioning.SupportedOSPlatform("maccatalyst")] [System.Runtime.Versioning.UnsupportedOSPlatform("ios")] [System.Runtime.Versioning.UnsupportedOSPlatform("tvos")] get; [System.Runtime.Versioning.SupportedOSPlatform("freebsd")] [System.Runtime.Versioning.SupportedOSPlatform("macos")] [System.Runtime.Versioning.SupportedOSPlatform("maccatalyst")] [System.Runtime.Versioning.SupportedOSPlatform("windows")] set; }
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("freebsd")] [System.Runtime.Versioning.SupportedOSPlatform("macos")] [System.Runtime.Versioning.SupportedOSPlatform("windows")] set; }
public IntPtr MaxWorkingSet { get; set; }
[<get: System.Runtime.Versioning.SupportedOSPlatform("maccatalyst")>]
[<get: System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<get: System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<set: System.Runtime.Versioning.SupportedOSPlatform("freebsd")>]
[<set: System.Runtime.Versioning.SupportedOSPlatform("macos")>]
[<set: System.Runtime.Versioning.SupportedOSPlatform("maccatalyst")>]
[<set: System.Runtime.Versioning.SupportedOSPlatform("windows")>]
member this.MaxWorkingSet : nativeint with get, set
[<set: System.Runtime.Versioning.SupportedOSPlatform("windows")>]
member this.MaxWorkingSet : nativeint with get, set
[<get: System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<get: System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<set: System.Runtime.Versioning.SupportedOSPlatform("freebsd")>]
[<set: System.Runtime.Versioning.SupportedOSPlatform("macos")>]
[<set: System.Runtime.Versioning.SupportedOSPlatform("windows")>]
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 메모리의 프로세스에 표시되는 메모리 페이지 집합입니다. 이러한 페이지는 상주 하며 페이지 오류를 일으키지 않고 애플리케이션에 사용할 수 있습니다.

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

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

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

메모

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

적용 대상

추가 정보