By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,843 Members | 864 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,843 IT Pros & Developers. It's quick & easy.

Monitor MEM usage programmatically

P: n/a
Hi All,

How (if possible) can you monitor the amount of system memory used, e.g.,
that displayed as MEM Usage under the Task Manager? I've got an app (non
..NET) that tends to leak memory and I'd like to keep an eye on it--maybe
through a C# dll???

TIA,

John
Nov 15 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
System.Diagnostics.Process should suffice.
-mike
MVP

"John Spiegel" <js******@YETANOTHERSPAMHATERc-comld.com> wrote in message
news:OK**************@TK2MSFTNGP09.phx.gbl...
Hi All,

How (if possible) can you monitor the amount of system memory used, e.g.,
that displayed as MEM Usage under the Task Manager? I've got an app (non
.NET) that tends to leak memory and I'd like to keep an eye on it--maybe
through a C# dll???

TIA,

John

Nov 15 '05 #2

P: n/a
Why not use the performance monitor for this, you can create log files and
even send alerts when some counter thresholds are reached.

Willy.

"John Spiegel" <js******@YETANOTHERSPAMHATERc-comld.com> wrote in message
news:OK**************@TK2MSFTNGP09.phx.gbl...
Hi All,

How (if possible) can you monitor the amount of system memory used, e.g.,
that displayed as MEM Usage under the Task Manager? I've got an app (non
.NET) that tends to leak memory and I'd like to keep an eye on it--maybe
through a C# dll???

TIA,

John

Nov 15 '05 #3

P: n/a
Thanks, Michael. Took a little looking since I'm still pretty new and
haven't used perfmon before, but it's exactly what I needed!

- John

"Michael Giagnocavo [MVP]" <mg*******@Atrevido.net> wrote in message
news:en**************@TK2MSFTNGP12.phx.gbl...
System.Diagnostics.Process should suffice.
-mike
MVP

"John Spiegel" <js******@YETANOTHERSPAMHATERc-comld.com> wrote in message
news:OK**************@TK2MSFTNGP09.phx.gbl...
Hi All,

How (if possible) can you monitor the amount of system memory used, e.g., that displayed as MEM Usage under the Task Manager? I've got an app (non .NET) that tends to leak memory and I'd like to keep an eye on it--maybe
through a C# dll???

TIA,

John


Nov 15 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.