Video Tutorial on doing .NET Memory investigations using PerfView
I have finished three new videos that are about doing .NET GC Heap memory investigations using the PerfView tool and have posted them to Channel Nine.
- Basics of .NET GC Snapshots
- Investigating Memory Leaks: Part 1 Collecting the data
- Investigating Memory Leaks: Part 2 Analyzing the data
The first video gives you the basics.
- Determining whether you have a Memory problem and whether the problem is the GC heap.
- Exactly happens when you take a heap snapshot (PerfView does sampling of large heaps).
The second two videos describe a real life example: How I used perfView's heap dumping capability to resolve a memory increasing issue in perfView itself. I go through all the steps, from how the problem was first discoverd (by noticing memory growth in TaskManager) to finding a fix, and validating the the fix worked.
You may also be interested in a background MSDN article that I helped write a few years back that is still very relevant Memory Usage Auditing for .NET Applications.
Comments
Anonymous
September 24, 2012
nice topic, but again, please use a better microphone and don't cry all the time. I also have an issue with the snapshot creation. I've posted some details on channel 9.Anonymous
May 25, 2015
I loved this series for PerfView. For this particular memory leak, you may consider using DependentyProperty or INotifyPropertyChanged interface to fix it. As described here geekswithblogs.net/.../are-your-wpf-apps-leaking-memory-maybe-itrsquos-a-feature.aspx