Release and Recycle Memory

For large systems or systems with a high transactional load, an “Out of Memory” error can occur when the request for pages exceeds the system’s capability to release and recycle the memory with the default IIS settings. The settings provided below will force IIS to recycle the memory usage and handle it better so that the “Out of Memory” error does not occur.

Note that overly aggressive settings can slow the response of the system. Typically, memory is recycled when the application pool and server are not busy. Forcing memory to recycle more often can consume processor cycle time when the application is still busy, thus slowing system performance. The following settings have been tested to prevent the error from occurring, while posing the minimum possible impact on performance.

  1. In the Connections pane of the IIS Manager, click Application Pools.
  2. Right-click the system’s application pool and choose Recycling on the shortcut menu.
  3. In the Application Pool Recycling Settings window that appears, specify the following settings and then click Next:
    • In the Fixed Intervals area, select Regular time intervals and enter 1740.
    • In the Memory Based Maximums area, select Private memory usage and enter 1,024,000.
  4. Select to log the following events and click Finish:
    • Regular time intervals
    • Private memory usage
    • Unhealthy ISAPI