Set memory limit

If the ASPNET_WP process restarts due to heavy usage, you can change the memory limit to extend the longevity of the process. The memory limit specifies the maximum memory size, as a percentage of total system memory, that a process can consume before ASP.NET launches a new process and reassigns existing requests. By default, this parameter is set to 60%. This means that once the web server uses 60% of the physical memory, the ASPNET_WP process restarts with more available memory. If you increase the memory limit, the recommended maximum value is 80%.

To set the memory limit

  1. From a text or XML editor, open the machine.config file, which is located in .NET Framework installation directory.

  2. Locate the <processModel> section and change the memory limit value, shown in boldface in the example below, with a new value:

    <processModel enable="true"
        timeout="Infinite" idleTimeout="Infinite" 
            shutdownTimeout="0:00:05"
        requestLimit="Infinite" requestQueueLimit="5000"
        restartQueueLimit="10" memoryLimit="60" 
            webGarden="false"
        cpuMask="0xffffffff" userName="machine" 
            password="AutoGenerate"
        logLevel="Errors" clientConnectedCheck="0:00:05"
        comAuthenticationLevel="Connect" 
            comImpersonationLevel="Impersonate"
        responseRestartDeadlockInterval="00:09:00" 
            responseDeadlockInterval="00:03:00"
        maxWorkerThreads="25" maxIoThreads="25"/>