Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way to track down a memory leak (C#) only visible on one customer's box

What is the best way to track down a memory leak that is only found on one customer's test/release box, and no where else?

like image 779
Jon Ediger Avatar asked Sep 29 '08 21:09

Jon Ediger


People also ask

How do you detect memory leak in C?

We know that a program should call couple of malloc/calloc and same number of free calls. If the number of malloc/calloc calls are greater than number of free calls then we are sure a memory leakage happened. So the way to detect memory leak is to trace the calls.

How do you monitor memory leaks?

To find a memory leak, look at how much RAM the system is using. The Resource Monitor in Windows can be used to accomplish this. In Windows 8.1 and Windows 10: To open the Run dialogue, press Windows+R, then type "resmon" and click OK.

What is the best tool to detect memory leaks?

To find memory leaks and inefficient memory usage, you can use tools such as the debugger-integrated Memory Usage diagnostic tool or tools in the Performance Profiler such as the . NET Object Allocation tool and the post-mortem Memory Usage tool.


2 Answers

dotTrace3.1

(This question is kinda funny, cause I am tracking a mem leak that isn't present on my machine ...)

like image 185
MagicKat Avatar answered Oct 11 '22 05:10

MagicKat


Try a memory profiler like ANTS Profiler.

like image 34
artur02 Avatar answered Oct 11 '22 06:10

artur02