How to debug the potential memory leak?

后端 未结 4 1165
醉话见心
醉话见心 2021-01-06 03:02

I programed the windows service to do a routine work.

I InstallUtil it to windows service and it\'will wake up and do something and then thread.sl

4条回答
  •  感情败类
    2021-01-06 04:01

    To find a memory leak, you should look at the performance counters on a long period of time. If you see the number of handles or total bytes in all heap growing without never decreasing, you have a real memory leak. Then, you can use for example profiling tools in visual studio to track the leak. There is also a tool from redgate which works quite well.

提交回复
热议问题