

NET Framework's garbage collector (GC) does when it needs memory to grow the managed heaps. When an application needs to use memory, it reserves a chunk of the virtual address space and then commits memory from that chunk. It all assumes that you aren't running with the /3gb switch enabled. The 2 GB allocated for Kernel-mode memory is shared among all processes, but each process gets its own 2 GB of user-mode address space. Out of that, 2 GB is reserved for the operating system (Kernel-mode memory) and 2 GB is allocated to user-mode processes. A 32-bit operating system can address 4 GB of virtual address space, whatever the amount of physical memory that is installed in the box.

Contrary to what many developers believe, the amount of RAM that's installed doesn't impact the possibility of an OutOfMemoryException. So we've put together a collection of resources to help troubleshooting and identifying the cause of memory issues.īefore we cover the details of troubleshooting an OutOfMemoryException, it's important to understand what causes this problem. One of the most common issues that we see in Microsoft Customer Support Services is OutOfMemoryException scenarios. Original product version: ASP.NET Original KB number: 2020006 Symptoms This article helps you troubleshoot Out of Memory errors in ASP.NET. Troubleshoot Out of Memory issues (System.OutOfMemoryException) in ASP.NET
