Partager via


Configuring Recycling Settings for an Application Pool (IIS 7)

Applies To: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista

If you have a problematic application and you cannot easily correct the code that causes the problems, you can limit the extent of these problems by periodically recycling the worker process that services the application.

In addition to recycling an application pool on demand when problems occur, you can configure an application pool to recycle a worker process for the following reasons:

  • At a scheduled time

  • After an elapsed time

  • After reaching a number of requests

  • After reaching a virtual memory threshold

  • After reaching a used memory threshold

Prerequisites

For information about the levels at which you can perform these procedures, and the modules, handlers, and permissions that are required to perform these procedures, see Application Pools Feature Requirements (IIS 7).

Procedures

This task includes the following procedures:

Recycle an Application Pool on Demand (IIS 7)

Configure an Application Pool to Recycle at a Scheduled Time (IIS 7)

Configure an Application Pool to Recycle after an Elapsed Time (IIS 7)

Configure an Application Pool to Recycle after Reaching a Number of Requests (IIS 7)

Configure an Application Pool to Recycle after Reaching Maximum Virtual Memory Usage (IIS 7)

Configure an Application Pool to Recycle after Reaching Maximum Used Memory (IIS 7)

Configure Logging of Events when an Application Pool Recycles because of Non-Configured Recycling Events (IIS 7)

Configure Logging of Events when an Application Pool Recycles because of Configured Recycling Events (IIS 7)