473,396 Members | 1,972 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,396 software developers and data experts.

Memory used by a specific process

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


Oct 4 '06 #1
3 1561
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]
- mv*@spam.guard.caspershouse.com

"Avi" <m@m.comwrote in message news:eg**********@news2.netvision.net.il...
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


Oct 4 '06 #2

"Avi" <m@m.comwrote in message news:eg**********@news2.netvision.net.il...
| 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.
Oct 4 '06 #3
Avi
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 [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote in
message news:Of**************@TK2MSFTNGP06.phx.gbl...
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]
- mv*@spam.guard.caspershouse.com

"Avi" <m@m.comwrote in message
news:eg**********@news2.netvision.net.il...
>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



Oct 5 '06 #4

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

Similar topics

6
by: Tom | last post by:
We have a VERY simple .NET C# Form Application, that has about a 23MB Memory Footprint. It starts a window runs a process and does a regular expression. I have done a GC.Collect to make sure that,...
2
by: Aravind | last post by:
Hi , This is a Windows form application which interacts with the unmanaged C++ codes . In unmanaged c++ code we allocate around 130MB on the heap for annalysing high resolution images . Earlier...
4
by: PaulR | last post by:
Hi, We have a Server running SLES 8 and 3GB memory, with 1 DB2 instance and 2 active Databases. General info... DB2level = "DB2 v8.1.0.72", "s040914", "MI00086", and FixPak "7" uname -a =...
18
by: jacob navia | last post by:
In C, we have read-only memory (const), read/write memory (normal data), and write only memory. Let's look at the third one in more detail. Write only memory is a piece of RAM that can only...
4
by: djc | last post by:
the aspnet_wp.exe process in taking up lots of memory. Right now just the one main page loads and imediately goes to the top of the memory usage list with around 32MB of memory usage. The page only...
13
by: Nikolay Petrov | last post by:
I've got this issue: When I start my application it takes a lot of memory. I guess this is caused by CLR. That's fine. But every time the app performs an action (open new form, load data in...
8
by: Lauren the Ravishing | last post by:
Hi, In ASP, is it absolutely necessary to set an object to Nothing after being used? set myObj = server.createObject("myDLL.myClass") call myObj.useClass set myObj = Nothing <--- can I...
5
by: Sune | last post by:
Hi all, I want to make data stored in-memory (not disk) available to several processes. My concern is that poorly written C applications with dangling pointers may(will) damage the data in this...
6
by: CMOS | last post by:
consider the below code. it just creates a map and inserts 51000000 elements. when i check the memory usage , it shows an increase of memory after the loop. the increase is around 2mb. i used "ps...
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: 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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.