Memory used by a specific process

  • Thread starter Thread starter Avi
  • Start date Start date
A

Avi

Hi all,



In my program I need to know the memory used by certain applications. I was
able to get the free available memory on the machine, but not the memory
that is used by a specific application.



Is there a way of doing it?



Thanks,

Avi
 
Avi,

You will have to look at the performance counters for the system, and
get the memory for a specific instance of an app.

Hope this helps.
 
| Hi all,
|
|
|
| In my program I need to know the memory used by certain applications. I
was
| able to get the free available memory on the machine, but not the memory
| that is used by a specific application.
|
|
|
| Is there a way of doing it?
|
|
|
| Thanks,
|
| Avi
|

The System.Diagnostics.Process class holds a lot of memory related
properties, is there anything specific you are missing.

Willy.
 
Thanks all,



I used to use the performance counters' "Available MBytes" which gave me the
machine available memory which was not enough for me. I found the counter I
needed "Private Bytes" which gives the memory used by a single process



Thanks for all your help,





Nicholas Paldino said:
Avi,

You will have to look at the performance counters for the system, and
get the memory for a specific instance of an app.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Avi said:
Hi all,



In my program I need to know the memory used by certain applications. I
was able to get the free available memory on the machine, but not the
memory that is used by a specific application.



Is there a way of doing it?



Thanks,

Avi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top