O'Reilly logo

Visual Studio 2012 and .NET 4.5 Expert Development Cookbook by Abhishek Sur

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to find memory leaks in a .NET program

Memory leaks are a nightmares for any developer. A memory leak increases the memory of an entire application slowly, and gradually eats up the entire process memory and eventually the entire system memory. The memory leak becomes the biggest problem when the application is deployed to the server and needs to run day and night as a service.

Memory leaks can occur either in a stack, an unmanaged heap, or managed heaps. There are many ways to detect memory leaks in a program. Tools such as Windbg, PerfMon , DebugDiag, or even Visual Studio can be used to detect memory leaks in a program. The most important area of memory that is used by the process is represented by private bytes.

Note

It is important to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required