473,387 Members | 1,476 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Determining VM size of a process

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
Nov 21 '05 #1
2 2939
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.
Nov 21 '05 #2
What What Process.VirtualMemorySize returns and what
Process.PrivateMemorySize is clearly stated in the documentation for the
Process class.
"Claes T Tenell via DotNetMonster.com" <fo***@DotNetMonster.com> wrote in
message news:3c******************************@DotNetMonste r.com...
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.

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Luca | last post by:
I have the following problem: I'm developing a system where there are some processes that communicate each other via message queues; the message one process can send to another process is as...
2
by: Phil Galey | last post by:
In VB.NET I find the IO object very handy in replacing most of the functionality of the FileSystemObject. One exception, however, is in determining the size of a file. How can you determine the...
12
by: Raja | last post by:
How to know the buffer size and increase buffer size in c++.
7
by: Jean-David Beyer | last post by:
I have six hard drives (4 SCSI and 2 EIDE) on my main machine with parts of a database on each drive. The main index is on one SCSI drive all to itself. The main data are on the other three SCSI...
14
by: googler | last post by:
Is there any C library function that returns the size of a given file? Otherwise, is there a way in which file size can be determined in a C program? I need to get this for both Linux and Windows...
0
by: David Socha | last post by:
I am looking for a way to determine the maxium array size I can allocate for arrays of Float32 values (or Int32, or Int8, ...) at an arbitrary point in the program's execution. This is needed...
19
by: catmansa | last post by:
Is there anyway to determine the present pixel height & width size of a open browser window? :)
13
by: writeson | last post by:
Hi all, I'm writing some code that monitors a directory for the appearance of files from a workflow. When those files appear I write a command file to a device that tells the device how to...
0
by: Manuel Vazquez Acosta | last post by:
Cameron Simpson wrote: Hum, what about the last file in the sequence? I think polling file's size maybe a good indicator, as Ethan proposed. Best regards, Manuel.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.