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

  • 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!
  • 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:


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.
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.
sfun28Author Commented:
Thanks for helping.  per my comment, there doesn't seem to be a great resource for this

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