HighTechTalks DotNet Forums  

Measuring process memory utilization

Dotnet Framework (WMI) microsoft.public.dotnet.framework.wmi


Discuss Measuring process memory utilization in the Dotnet Framework (WMI) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Deji Akinyemi
 
Posts: n/a

Default Measuring process memory utilization - 11-02-2007 , 10:12 PM






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


Reply With Quote
  #2  
Old   
Femi
 
Posts: n/a

Default Re: Measuring process memory utilization - 11-25-2007 , 05:42 AM






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

"Deji Akinyemi" <ihnau (AT) hotmail (DOT) com> wrote

Quote:
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



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.