Native memory 'Other Data'

Use this forum for questions on how to use .NET Memory Profiler and how to analyse memory usage.
Post Reply
shaie
Posts: 2
Joined: Tue Apr 10, 2018 3:15 pm

Native memory 'Other Data'

Post by shaie » Wed Apr 11, 2018 8:52 am

Hi,

I'm trying to locate source of native bytes leaked from .Net application.
I've succeeded to collect snapshots using nmpCore.exe with /rt, but when comparing the snapshots in .Net Memory Profiler, most of the native bytes difference between the snapshots is under 'Other Data'.

Is there anything I can do differently to locate those native bytes?

Thanks,
Shai

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

Re: Native memory 'Other Data'

Post by Andreas Suurkuusk » Thu Apr 12, 2018 2:46 pm

The native memory information collected by the resource tracker is presented as "Identified resources" in the "Native memory" view. Do you see any resources listed there?
IdentifiedResources.png
The resource tracker is not activated in the profiled process until the .NET runtime is loaded into the process. So if the native bytes are allocated before the runtime is loaded, the profiler will not be able to identify them (this is something we plan to improve in the next version).

The NmpCore tool is not well suited for collecting native resource information, since it is not possible to specify symbol file locations when using NmpCore. Without symbol files information, the call stacks of the resources will be much less detailed.

When looking into this, I noticed that the native resource tracker could cause the profiled process to dead-lock. Apparently the loader-lock synchronization in Windows has been modified, probably in a recent update. The modification could cause the native resource tracker to dead-lock. We have now fixed this and built a new release of .NET Memory Profiler. We will soon release it officially, but you can download it now using the link below:

https://cdn.memprofiler.com/download/Me ... 5_6_30.exe
Best regards,

Andreas Suurkuusk
SciTech Software AB

shaie
Posts: 2
Joined: Tue Apr 10, 2018 3:15 pm

Re: Native memory 'Other Data'

Post by shaie » Sun Apr 15, 2018 10:04 am

Thank you.
Indeed I encountered the dead-lock and the process did not start in the previous version of .NET Memory Profiler, that's why I used nmpCore.
With the new version I can see the identified resources.

Thanks,
Shai

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests