Determining VM size of a process

  • Thread starter Thread starter Mark Jacobs
  • Start date Start date
M

Mark Jacobs

I'm having problems determining the memory usage of a process using the
Process component. If I call Process.VirtualMemorySize.ToString I will
get back a value that is nowhere near close to what the task manager
reports.

In this particular instance the VirtualMemorySize property returned a value
of 43765760 while the task manager shows a VMSize of 2,744K. What am I
missing here? How do the Process memory usage properties map to task
manager memory usage statistics? Any help would be appreciated.


Mark
 
I had the same problem. The documentation on .NET 1.1 is not very good so I
played around a little and found that using Process.PrivateMemorySize gives
same result as Virtual Memory in Task manager (divided with 1024 of course)
..
What Process.VirtualMemorySize returns I do not know.
 
What What Process.VirtualMemorySize returns and what
Process.PrivateMemorySize is clearly stated in the documentation for the
Process class.
 
Back
Top