Click here to monitor SSC
  • Av rating:
  • Total votes: 25
  • Total comments: 3

Under the Hood of .NET Memory Management

19 June 2012
Under the Hood of .NET Memory Management eBook

As well-engineered as the .NET framework is, it's not perfect, and it doesn't always get memory management right. To write truly fantastic software, you need to understand how .NET memory management actually works. This book will take you from the very basics of memory management, all the way to how the OS handles its resources, and will help you write the best code you can.

Chris Farrell and Nick Harrison have both been working with the .NET framework since day one, and bring all their experience to bear in this book as they explain:

  • How the .NET framework manages memory
  • How to avoid writing unnecessarily resource–hungry code
  • How to fix your applications' memory troubles

To see an independent review of this book, read Book finished: Under the Hood of .Net Memory Management

Chris Farrell

Author profile:

Chris Farrell has over 18 years of development experience, and has spent the last seven as a .NET consultant and trainer. For the last three years, his focus has shifted to application performance assurance and the use of tools to identify performance problems in complex .NET applications. Working with many of the world's largest corporations, he has helped development teams find and fix performance, stability and scalability problems with an emphasis on training developers to find problems independently in the future.
In 2009, after working at Compuware as a consultant for two years, Chris joined the independent consultancy CodeAssure UK ( as their lead performance consultant.
When not analyzing underperforming websites, Chris loves to spend time with his wife and young son swimming, bike riding, and playing tennis. His dream is to encourage his son to play tennis to a standard good enough to reach a Wimbledon final, although a semi would also be fine.

Search for other articles by Chris Farrell

Rate this article:   Avg rating: from a total of 25 votes.





Must read
Have Your Say
Do you have an opinion on this article? Then add your comment below:
You must be logged in to post to this forum

Click here to log in.

Subject: Need some more detail
Posted by: jinal (view profile)
Posted on: Tuesday, September 11, 2012 at 9:41 AM
Message: Although book is very very informative and it would be great book if following topics included.
1. Why heap and stack is different as both present in RAM ?
2. Remoting object Garbage Collection
3. Distributed system and its Garbage Collection
4. SQL CLR Garbage Collection

Subject: .NET applications using files instead of embedded resources
Posted by: greenstone (view profile)
Posted on: Friday, January 4, 2013 at 3:43 PM
Message: Hi Chris,

I enjoyed reading you book. Great work!

A question about your suggested practice of "using content instead of embedded resources for larger artifact"...

Is the issue that the embedded resources are all loaded into memory run-time. Are they sitting in managed or unmanaged memory? If managed, are they eventually elevated to Gen 2?

Any general idea of what size you might consider "larger artifacts"?

Any general thoughts about how often a resource is accessed, to whether it's better to remain on disk (ASP.NET) -vs- embedded resources?



Subject: Regarding the Book
Posted by: jegaonkarsachin (view profile)
Posted on: Monday, December 7, 2015 at 10:36 PM
Message: This book is really good to get a deeper insight into .NET memory management.

One Must Have this Title.


Recommended site is a user-driven wiki which provides .NET developers with native method signatures, so they don't have to spend time writing them from scratch.

Check out!

Top Rated

SQL Server Source Control Basics
 For efficient team-based database development, and reliable and repeatable database deployments, source... Read more...

Tribal SQL
 Tribal SQL, is a reflection of how a DBA's core and long-standing responsibilities sit alongside new... Read more...

Book Review: Optimizing And Troubleshooting Hyper V Networking 2013
 If you want to learn how to optimize and troubleshoot Hyper-V, then this book, written by Microsoft... Read more...

Don't Just Roll the Dice - eBook Download
 Neil Davidson has created a short handbook with the theory, practical advice and case studies, to... Read more...

Captain Biplane: Interplanetary Airman
 Simple-Talk caters for the lighter side with its publication of 'Captain Biplane: Interplanetary... Read more...

Most Viewed

Troubleshooting SQL Server: A Guide for the Accidental DBA
 Three SQL Server MVPs, and stalwarts of the SQLServerCentral and MSDN community forums, provide... Read more...

Exchange 2010 - A Practical Approach
 Jaap's Practical Guide to Exchange Server 2010 draws upon all that experience to deliver an easy-to-use... Read more...

Brad's Sure Guide to SQL Server Maintenance Plans
 Brad's Sure Guide to Maintenance Plans shows you how to use the Maintenance Plan Wizard and Designer to... Read more...

SQL Server Hardware
 SQL Server Hardware will provide the fundamental knowledge and resources you need to make intelligent... Read more...

Inside the SQL Server Query Optimizer
 This book will take you from the fundamentals of Statistics, Cost Estimation, Index Selection, and the... Read more...

Why Join

Over 400,000 Microsoft professionals subscribe to the Simple-Talk technical journal. Join today, it's fast, simple, free and secure.