473,396 Members | 1,852 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.

Monitoring memory usage ...

Hi All,
I am trying to check the memory usage for a process using C#
(.NET 1.1). I found out several properties in the Process class that
was useful. But, my question is after i tried that out and compared
the result with that indicating in the Windows Task Manager they
didn't match?

Could anyone suggest any other options?

Thanks..

Jul 8 '07 #1
5 2837
Hello Remote_User,

Use performance counters http://msdn2.microsoft.com/en-us/library/x2tyfybc.aspx

---
WBR, Michael Nemtsev [C# MVP].
[.Net Tips & Tricks]: http://msmvps.com/blogs/laflour/page...mp-tricks.aspx
My blog: http://spaces.live.com/laflour/ Team blog: http://devkids.blogspot.com/
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

RHi All,
RI am trying to check the memory usage for a process using C#
R(.NET 1.1). I found out several properties in the Process class that
Rwas useful. But, my question is after i tried that out and compared
Rthe result with that indicating in the Windows Task Manager they
Rdidn't match?
R>
RCould anyone suggest any other options?
R>
RThanks..
R>
Jul 8 '07 #2
Hi Michael,
Thanks for the reply. But, in the msdn link you
provided, it was mainly referring to the counters that refers to the
Garbage Collector.

Thanks.

-----

On Jul 8, 9:26 pm, Michael Nemtsev <nemt...@msn.comwrote:
Hello Remote_User,

Use performance countershttp://msdn2.microsoft.com/en-us/library/x2tyfybc.aspx

---
WBR, Michael Nemtsev [C# MVP].
[.Net Tips & Tricks]:http://msmvps.com/blogs/laflour/page...mp-tricks.aspx
My blog:http://spaces.live.com/laflour/ Team blog:http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

RHi All,
RI am trying to check the memory usage for a process using C#
R(.NET 1.1). I found out several properties in the Process class that
Rwas useful. But, my question is after i tried that out and compared
Rthe result with that indicating in the Windows Task Manager they
Rdidn't match?
R>
RCould anyone suggest any other options?
R>
RThanks..
R>

Jul 9 '07 #3
RE:
<< Thanks for the reply. But...>>

So, while you're googling for yourself, and in addition to performance
counters, you might also search for WMI and WQL which also give you
extensive access to hardware, OS, etc info.
Jul 9 '07 #4
Hi,
I have to use .NET 1.1 and WMI/WQL are for .NET 2.0 and higher.

---
On Jul 9, 8:39 am, "Bob Johnson" <A...@B.COMwrote:
RE:
<< Thanks for the reply. But...>>

So, while you're googling for yourself, and in addition to performance
counters, you might also search for WMI and WQL which also give you
extensive access to hardware, OS, etc info.

Jul 9 '07 #5
The value reported by Task Manager is the Working Set. This is very
different from what you think it is.

For figuring out your .Net memory consumption, use the .Net Performance
Counters.

If you're trying to figure out where you memory is going, use a Memory
Profiler, such as the one from Scitech.

--
Chris Mullins, MCSD.NET, MCPD:Enterprise, Microsoft C# MVP
http://www.coversant.com/blogs/cmullins

"Remote_User" <am****@gmail.comwrote in message
news:11*********************@z28g2000prd.googlegro ups.com...
Hi All,
I am trying to check the memory usage for a process using C#
(.NET 1.1). I found out several properties in the Process class that
was useful. But, my question is after i tried that out and compared
the result with that indicating in the Windows Task Manager they
didn't match?

Could anyone suggest any other options?

Thanks..

Jul 10 '07 #6

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

Similar topics

0
by: Jay Blanchard | last post by:
-----Original Message----- From: Moritz Steiner =20 Sent: Wednesday, July 16, 2003 10:46 AM To: Jay Blanchard Subject: AW: monitoring I want to see: Number of queries =20
2
by: tomvr | last post by:
Hello I have noticed some 'weird' memory usage in a vb.net windows app The situation is as follows I have an app (heavy on images) with 2 forms (actually there are more forms and on starting...
3
by: Ian Taite | last post by:
Hello, I'm exploring why one of my C# .NET apps has "high" memory usage, and whether I can reduce the memory usage. I have an app that wakes up and processes text files into a database...
4
by: johnm | last post by:
Hello, We currently are running a CRM application that uses DB/2 7.2 for the data repository. We will be upgrading to 8.2 later this year....maybe....time and resources permitting. The...
1
by: Pawan | last post by:
Hi, Currently I am have an assignment which has to have some functionality which enables internet usage of client computers from a server machine. Basically this is an upgradation that I have to...
1
by: Rick Gigger | last post by:
I am running a few web based applications with postgres on the backend. We have a few app servers load balanced all connecting to a dedicated postgres server. As usage on the applications...
1
by: Jean-Paul Calderone | last post by:
On Tue, 22 Apr 2008 14:54:37 -0700 (PDT), yzghan@gmail.com wrote: The test doesn't demonstrate any leaks. It does demonstrate that memory usage can remain at or near peak memory usage even after...
0
by: =?Utf-8?B?Qm9iUGl0YnVsbA==?= | last post by:
Suppose that my base class is A and I have classes B, C and D deriving from A. I then have B2 deriving from B and C2 deriving from C... and B3 deriving from B2. Then... suppose that I have some...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.