Finding the true memory footprint of a Windows application

走远了吗. 提交于 2019-11-28 12:52:40
BabaBooey

Using some of the diagnostics tools suggested here, plus the ANTS memory profiler (which is so money) I found the source of the leak.

  1. WPF Storyboard animations leak under .NET 3.5
  2. The WPF BitmapEffect class can cause leaks. The alternative "Effect" class fixes the leak. Link, Link
  3. XAML Merged ResourceDictionaries can cause leak. Link, Link
  4. The "Working Set" memory footprint of an application (memory shown by task manager) is not a good indication of your process' footprint. Outside applications can influence this. Link

The memory profiling tools helped me find that the leaks were mostly in unmanaged code, which made it a real pain to track down. Dealing with these leaks, plus a better understanding of Windows memory (private vs working set) cleared things up.

Prcess Explorer and VMMap, both part of the Sysinternals Suite by Mark Russinovich.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!