Application Memory Usage

Use this forum for questions on how to use .NET Memory Profiler and how to analyse memory usage.
Post Reply
briviere

Application Memory Usage

Post by briviere » Mon Aug 22, 2005 7:57 pm

Why is it that when I'm running my application through the profiler a large amout of memory is getting used? This does not occur when we donot use the profiler.


brian

Andreas Suurkuusk
Posts: 1029
Joined: Wed Mar 02, 2005 7:53 pm

Post by Andreas Suurkuusk » Tue Aug 23, 2005 2:53 pm

The profiler itself uses substantial amounts of memory to keep track of all allocated instances and call stacks. Additionally, the amount of unidentified memory increases when running under the profiler (especially when native memory profiling is not active). We have tried to identify why the memory usage differs so much when running under the profiler. We have not been able to find an answer, but we believe that the runtime has different memory characteristics when running under the profiler.

In the next version the native memory profiling is replaced with "low impact profiling" (it's almost the same thing, except that "low impact profiling" actually performs a GC when collecting a snapshot). This will lower the memory overhead when profiling, and you will get more accurate native memory information, however some features will be disabled (e.g call stacks will not be presented).
Best regards,

Andreas Suurkuusk
SciTech Software AB

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests