Memory leak detection

G

Guest

Will GC.GetTotalMemory(true) reliably tell if a console app could have a
memory leak, given the nature of memory management of GC in .NET? Like
calling it two times, each at the beginning and right before exiting from the
app?

If not, can somebody shows me the steps of using CLRProfiler for .Net to
check memory leak of the app?

(Btw, I used Performance but it doesn't show memory leak. However I'm still
suspicious of it.)

Thanks!
 
V

Vadym Stetsyak

Hello, dh!

Memory leak is an abstrack notion.
IMO to detect if application has mem leak you have to analyze its memory management
behavior.

Is it freeing memory?

Have a look at the following links
( http://www.thescripts.com/forum/thread336255.html )
( http://en.wikipedia.org/wiki/Memory_leak )

d> Will GC.GetTotalMemory(true) reliably tell if a console app could
d> have a
d> memory leak, given the nature of memory management of GC in .NET?
d> Like
d> calling it two times, each at the beginning and right before exiting
d> from the
d> app?

d> If not, can somebody shows me the steps of using CLRProfiler for .Net
d> to
d> check memory leak of the app?

d> (Btw, I used Performance but it doesn't show memory leak. However I'm
d> still
d> suspicious of it.)

d> Thanks!



--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top