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

后端 未结 6 799
孤街浪徒
孤街浪徒 2021-02-13 21:11

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?

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-13 21:48

    It's either code, data or configuration.

    Since you say the code is not faulty 100% of the time, I would blame configuration. Take a copy of the configuration (and optionally some data) and try to replicate the problem; you won't know you've found and fixed it without reproduction.

    Finally, solve it with a memory profiler.

提交回复
热议问题