Search code examples
asp.netmemoryapplication-pool

Setting of IIS memory settings for ASP.NET


We are running an ASP.NET app on a web server with 4GB+ of memory in IIS 6. After reading many articles, it states that we need to set the "maximum memory used" for the Application Pool to 800mb to eliminate the "out of memory exceptions" that are happening for us. However, what should the "maximum virtual memory" in the Application Pool be set to? I can't find information as to what that should be set to.


Solution

  • The first thing you need to cover is whether you need so much memory in a web application. Our experience tells that a web application should use a reasonable amount of memory. That eliminates out of memory exception forever.

    We usually recommend 1024 MB virtual memory as the max virtual memory usage for a pool on x86 machine.