Environment.WorkingSet incorrectly returns the working set for my asp.net application, which is the only application in the application pool.
On Windows Server 2003 Service Pack 2 (SP3) with 3 GB, which is VMWare Virtual Machine , it reports that the working set is 2.047.468.061 bytes (1952 MB) and the value of Process.WorkingSet is 75.563.008 bytes (72MBs).
• Memory status values returned by GlobalMemoryStatusEx:
AvailExtendedVirtual : 0
AvailPageFile: 4.674.134.016
AvailPhys: 2.140.078.080
AvailVirtual: 1.347.272.704
TotalPageFile: 6.319.915.008
TotalPhys: 3.245.568.000
TotalVirtual: 2.147.352.576
• GetProcessMemoryInfo ()
Working Set : 55.140.352
Peak Working Set: 75.571.200
PageFile : 94.560.256
QuotaPagedPoolUsage : 376.012
QuotaNonPagedPoolUsage : 33.261
• GetProcessWorkingSetSize () - min: 204.800 - max: 1.413.120
• GetPerformanceInfo ()
CommitLimit : 1.542.948 pages 6.319.915.008 bytes
CommitPeak : 484.677 pages 1.985.236.992 bytes
CommitTotal : 417.514 pages 1.710.137.344 bytes
HandleCount : 57.012
KernelNonpaged : 8.671 pages 35.516.416 bytes
KernelPaged : 27.302 pages 111.828.992 bytes
KernelTotal : 35.973 pages 147.345.408 bytes
PageSize : 4.096 bytes
PhysicalAvailable : 508.083 pages 2.081.107.968 bytes
PhysicalTotal : 792.375 pages 3.245.568.000 bytes
ProcessCount : 43
SystemCache : 263.734 pages 1.080.254.464 bytes
ThreadCount : 1.038
http://support.microsoft.com/kb/983583/en-us, .NET 2.0.50727.3615 Environment.WorkingSet : 2.047.468.141 ( 80 )
Vista 3 Ram, Environment.WorkingSet Process.WorkingSet 37 .
, Environment.WorkingSet ? , , 2.047.468.061.
.NET 1.1.4322.2443, , WorkSet (193.654.824, 214.101.416, 57.207.080, 287.635.496) , GetProcessMemoryInfo() .
, , NT AUTHORITY\NetworkService, , Environment.WorkingSet .net v1.1, v2.0.
CodeAccessPermissions EnvironmentPermission Windows NetworkService, , WorkSet.
, ? , ..?