Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am writing a C# application, and can see the memory usage increasing as the running time of the application increases.

Are there any tools or techniques I could monitor my application's memory use, identify memory leaks and generally improve my application's memory use?

share|improve this question

closed as too broad by Brian, TMN, Ixrec, MichaelT, Bart van Ingen Schenau Jan 28 at 18:46

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 14 down vote accepted

The following resources may help you

For Tool

  • .NET Memory Profiler As good as monitoring the memory is by itself, you're probably thinking of memory profiling to identify leaks or stale objects.
  • .NET Memory Profiling This tool helped me to solve many different issues related to memory management in C# .Net application I have to work with.
  • Tool Mentor This tool describes how to use Rational Purify to profile and improve memory usage in a managed code application. This tool mentor is applicable for use with systems running the Microsoft .NET Framework on Microsoft Windows.
  • VMMap It is a clever tool that gives you a picture of what is taking up the memory in a running process.

  • ANTS Memory Profiler This tool finds memory leaks and optimize memory usage in your .NET application.

For Concepts &Techniques

share|improve this answer
I have used and been happy with redgate products. They provide the ANTS Memory profiler – Ben Nov 3 '12 at 10:44
@Ben, Yes. Another good one. I have added this at answer. – Md. Mahbubur R. Aaman Nov 3 '12 at 10:49
Jetbrains (makers of resharper) dotTrace too – razethestray Jan 26 at 17:34

Not the answer you're looking for? Browse other questions tagged or ask your own question.