Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 666
  • Last Modified:

Debugging unmanaged memory usage in .net app

Hi Experts - I have a leak in unmanaged memory (private bytes continue to go up over time while .net # bytes in all heaps is very low and constant).  I can cause the private bytes to rise by calling a method which itself calls many different methods.  I can't find a good approach to debug this.  It seems like I would simply need to inspect the memory beforehand and then after and see what the difference is and what component is causing the difference.

I've tried windbg and debugdiag but can't get them to do what i want.  Please help!
0
sfun28
Asked:
sfun28
  • 2
1 Solution
 
Jason EvansSenior Software DeveloperCommented:
Hi sfun28.

I'm not sure exactly what to suggest, but you might want to check out the following blog entries:

http://blogs.msdn.com/tess/archive/2008/03/17/net-debugging-demos-lab-6-memory-leak-review.aspx
http://blogs.msdn.com/tess/archive/2008/04/03/net-debugging-demos-lab-7-memory-leak-review.aspx

The author of the above blog is an ASP.NET escalation engineer and is a VERY knowledgable induvidual. You can learn a lot from this person's site. Hopefully there is enough information on this site, and these blog entries, to help you debug your issue.

Hope this helps.
Jas.
0
 
sfun28Author Commented:
the first link is the best resource i've seen so far, but that said it covers a very narrow scoped case.  I've spent hours researching this and i have yet to find a good article on this topic.

closing out this thread.
0
 
sfun28Author Commented:
Thanks for helping.  per my comment, there doesn't seem to be a great resource for this
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now