Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to tell memory being held by app

Status
Not open for further replies.

olichap

Programmer
Mar 20, 2001
389
US
I'm trying to find a way to tell how much memory (physical and virtual) is being held by my application at any given moment. Does anyone know of a way to do this from within the app? Essentially I'd like some way of reporting the values you'd see under the Task Manager "Processes" tab (Mem Usage, VM Size).

Thanks,

Oli
 
Take a look at the System.Diagnostics namespace. I believe there are some classes in that namespace that might meet your needs.

KJ
 
If you need it this info outside your app, you can use PerfMon. It has all kinds of performance counters for .NET

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top