Test for memory leaks in .NET applications

后端 未结 7 1504
攒了一身酷
攒了一身酷 2021-02-09 12:43

Are there any good(and free) tools for either analyzing static source or running programs to help detect memory leaks?

I\'ve built some windows services and want to make

相关标签:
7条回答
  • 2021-02-09 12:46

    I've used Microsoft's CLR Profiler with some success. Make sure to read its documentation to get the full benefits.

    0 讨论(0)
  • 2021-02-09 12:47

    Don't forget that you can use the Windows Task Manager to detect at least the presence of memory leaks in your service.

    Another way to use the Task Manager to track objects it to switch to the Processes tab, then go to View > Select Columns and check USER Objects and GDI Objects (GDI probably not useful to you since you're running a Service, but others may find it useful.)

    0 讨论(0)
  • 2021-02-09 12:54

    I can recommend http://memprofiler.com/, but it is not free.

    0 讨论(0)
  • 2021-02-09 13:01

    Redgate Ants Performance Profiler might help. It isn't free... but there is a 14 day trial which may be enough to get your services working.

    0 讨论(0)
  • 2021-02-09 13:02

    Profile Sharp is a free (open-source) performance and memory profiler for .NET

    0 讨论(0)
  • 2021-02-09 13:05

    Doesn't meet your requirements of being free, but there's one by Red Gate I think is worth suggesting - ANTS Memory Profiler

    I've used a number of their tools before (some on trial, some we've bought) and found them to be very good.

    0 讨论(0)
提交回复
热议问题