This documentation is archived and is not being maintained.

Process.PeakWorkingSet Property

Gets the peak working set size for the associated process.

[Visual Basic]
Public ReadOnly Property PeakWorkingSet As Integer
public int PeakWorkingSet {get;}
public: __property int get_PeakWorkingSet();
public function get PeakWorkingSet() : int;

Property Value

The maximum amount of physical memory that the associated process has required all at once, in bytes.


Exception Type Condition
PlatformNotSupportedException You are accessing this member using Windows 98.


The working set of a process is the set of memory pages currently visible to the process in physical RAM memory. These pages are resident and available for an application to use without triggering a page fault.

The working set includes both shared and private data. The shared data includes the pages that contain all the instructions that your application executes, including the pages in your .dll files and the system .dll files.


Platforms: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

Process Class | Process Members | System.Diagnostics Namespace | WorkingSet | MinWorkingSet | MaxWorkingSet