Memory used

  • Thread starter Thread starter MuZZy
  • Start date Start date
M

MuZZy

Hi,

Can someone tell me what's the most reliable way to see how much memory the .NET application
currently uses?

I suspect that my app is not releasing resources correctly and i want to see the memory used
increasing to prove it.

Someone in this NG told me that using Task Manager is the last thing i want to do for that.
So anybody knows what IS reliable?

PS. My app uses a class inherited from DataSet for SQL transactions. Many instances of that class
are created at different points. And i suspect that those created objects never get collected, and
to make sure i want to check memory.

Thank you,
Andrey
 
MuZZy said:
Can someone tell me what's the most reliable way to see how much memory
the .NET application currently uses?

Hmm - well this is not exactly possible in the normal sense because .NET uses
a complex GC.
I suspect that my app is not releasing resources correctly and i want to
see the memory used increasing to prove it.

Are you familiar with how the GC works?



--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Develop ASP.NET applications easier and in less time:
http://www.atozed.com/IntraWeb/
 
Chad said:
Hmm - well this is not exactly possible in the normal sense because .NET uses
a complex GC.




Are you familiar with how the GC works?

Up to a certain point :)
 
Peter Rilling said:
You might take a look at the profiler in the administrative tools.


Guess you mean "performance" (perfmon) in in the administrative tools.

Willy.
 
Chad said:
Before profiling or searching for "resource leaks" you really need to read up
some more on how the GC works in .NET other wise you will be chasing a lot of
phantoms.

You're right, man!
For last two weeks i've chased a hell lot of phantoms! :)
But the up-side of that - now i know much more about GC than two weeks ago!

Thank you,
Andrey
 
Back
Top