471,610 Members | 1,334 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,610 software developers and data experts.

Memory leak detection

dh
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!
Nov 28 '06 #1
1 1980
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 )

dWill GC.GetTotalMemory(true) reliably tell if a console app could
dhave a
dmemory leak, given the nature of memory management of GC in .NET?
dLike
dcalling it two times, each at the beginning and right before exiting
dfrom the
dapp?

dIf not, can somebody shows me the steps of using CLRProfiler for .Net
dto
dcheck memory leak of the app?

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

dThanks!



--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Nov 28 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by blugus | last post: by
8 posts views Thread by __jakal__ | last post: by
7 posts views Thread by mosaic | last post: by
4 posts views Thread by mast2as | last post: by
8 posts views Thread by kk_oop | last post: by
1 post views Thread by Archana | last post: by
16 posts views Thread by graham.keellings | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by MichaelMortimer | last post: by
1 post views Thread by ZEDKYRIE | last post: by

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.