Discussion:
Measuring process memory utilization
(too old to reply)
Deji Akinyemi
2007-11-03 02:12:58 UTC
Permalink
Been trying to monitor the amount of memory being used by a process using
WMI, specifically utilizing the
Win32_Process, and the Win32_PerfFormattedData_PerfProc_Process classes. I
can't seem to find a perf counter for instance, WorkingSet, PrivateBytes,
VirtualSize...etc whose values match those I see in task manager for the
same process.

Task manager states that is reporting the "private working set" memory, but
not even values from PrivateBytes under
Win32_PerfFormattedData_PerfProc_Process match this.

Can I indeed monitor memory usage using WMI on a per process granularity, or
is there perhaps some other
way I can go about doing this.

Will greatly appreciate any pointers. Thanks!

Deji
Femi
2007-11-25 10:42:18 UTC
Permalink
Hi Deji,

It appears that the PageFileUsage property of the WMI Win32_Process maps to
the virtual memory size column in task manager. Don't forget to divide the
PFU property by 1024.

Regards

Femi Odewale
Post by Deji Akinyemi
Been trying to monitor the amount of memory being used by a process using
WMI, specifically utilizing the
Win32_Process, and the Win32_PerfFormattedData_PerfProc_Process classes. I
can't seem to find a perf counter for instance, WorkingSet, PrivateBytes,
VirtualSize...etc whose values match those I see in task manager for the
same process.
Task manager states that is reporting the "private working set" memory,
but not even values from PrivateBytes under
Win32_PerfFormattedData_PerfProc_Process match this.
Can I indeed monitor memory usage using WMI on a per process granularity,
or is there perhaps some other
way I can go about doing this.
Will greatly appreciate any pointers. Thanks!
Deji
Loading...