1

What is the best way to detect memory leaks in c# .net ?

We are trying to find the cause of memory leaks on an application thats already installed and runing on a server

So visual studio profiler is not an option.

I worked with valgrind on linux, its a tool that actualy showed me, for example, the file names and line numbers in the code where i initialized the variables that are never disposed of..

however, valgrind only works on linux,

Are there good tools like that for .net ?

user3079720
  • 61
  • 2
  • 5

1 Answers1

1

You can use the Ants Profiler Pro by Red Gate software

ANTS Performance Profiler is an application profiler for .NET desktop, ASP.NET, and ASP.NET MVC applications:

  • Find performance bottlenecks fast by profiling both the .NET code and the data access layer
  • Get rich performance data, right-down to line-level timings and expensive database queries
  • Save time going round in circles diagnosing and debugging – let the profiler do the hard work for you
  • Explore unfamiliar code bases

Also check How to identify memory leaks in the common language runtime

Rahul Tripathi
  • 168,305
  • 31
  • 280
  • 331