Questions about Memory Profiler

Use this forum for questions on how to use .NET Memory Profiler and how to analyse memory usage.
Post Reply
Posts: 1
Joined: Thu Sep 10, 2015 4:06 am

Questions about Memory Profiler

Post by stever » Thu Sep 10, 2015 4:10 am

I was wondering why there are thousands of string objects and hundreds of Byte[] and Int32[]? Most of them are not my code. Where do they come from?

And what does the 'Number of large fragments' section under the title 'Memory fragmentation' mean? Because it shows 2 (100% of free memory). What exactly is this?

Convert legacy system

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

Re: Questions about Memory Profiler

Post by Andreas Suurkuusk » Fri Sep 11, 2015 2:45 pm

Strings, byte arrays and int arrays are commonly used by the .NET Framework. Even though you are not creating them directly, they are often created indirectly by many operations. You can get more information about why the objects are created by investigating the call stacks of them. The instance graph under Type details and Instance details will also give you an idea about why they exist.

2 large heap fragments means that the memory used by the large object heap is allocated in two memory blocks. We don't present "% of free memory" number. Where did you see "100¤ of free memory"?
Best regards,

Andreas Suurkuusk
SciTech Software AB

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 22 guests