473,503 Members | 1,953 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Monitor MEM usage programmatically

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
3 2635
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2849
by: Phil Sherman | last post by:
What is the relationship between the snapshot elements: Log pages written Number write log IOs Number partial page log IOs There doesn't appear to be any information in my PDF System monitor...
12
5237
by: Perecli Manole | last post by:
I am having some strange thread synchronization problems that require me to better understand the intricacies of Monitor.Wait/Pulse. I have 3 threads. Thread 1 does a Monitor.Wait in a SyncLock...
0
1352
by: mrpincer21 | last post by:
Could anyone help me by telling me how to create an excel document that monitors usage of many others by using visual basic program? I currently produce excel reports for my company but need to...
5
18386
by: soulofstar | last post by:
I want to monitor the CPU and RAM usage using Python, Now, I know how to monitor RAM usage by Python from ctypes import * from ctypes.wintypes import * class MEMORYSTATUS(Structure): ...
1
15417
by: Finomosec | last post by:
Hi, i have the following constellation: I have two PCs an only one Monitor. Earlier i had two monitors and used "Synergy" to use my single Mouse & Keyboard for both PCs. This worked fine. ...
1
8012
by: ShadowLocke | last post by:
This is an HTML application that allows you to monitor the CPU Usage (as seen in task manager) for any one task either on the local computer or a remote computer using vbscript. It then alerts you...
0
3049
danyluis
by: danyluis | last post by:
I need to change programmatically the value of the "Extend my Windows desktop onto this monitor" option on Desktop -> Properties -> Settings. I do not know if this can be done using any WMI...
1
2118
danyluis
by: danyluis | last post by:
I need to change programmatically the value of the "Extend my Windows desktop onto this monitor" option on Desktop -> Properties -> Settings. I do not know if this can be done using any WMI...
1
4066
danyluis
by: danyluis | last post by:
I need to change programmatically the value of the "Extend my Windows desktop onto this monitor" option on Desktop -> Properties -> Settings. I do not know if this can be done using any WMI...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
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...
1
7006
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
7467
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
5592
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,...
0
4685
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
397
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.