Recycling by Elapsed Time

Applies To: Windows Server 2003, Windows Server 2003 with SP1

You can configure an application pool to recycle the worker process, or worker processes, that are assigned to it at specified intervals. By default, recycling by elapsed time is enabled in IIS 6.0, with the elapsed time set to 29 hours. This default setting fits the recycling needs of applications that are problem-free, or that have flaws that cause problems gradually. Recycling worker processes at this interval refreshes applications often enough to correct problems that build up slowly, without creating the severe overhead that can be caused by closely spaced recycling.

Reset the elapsed-time interval for recycling a worker process if your tests or log records indicate that the application that the worker process is assigned to is encountering problems after a given period of uptime. Set the elapsed time to a shorter period of time if problems are building up in less than the default time interval of 29 hours.

Microsoft does not recommend recycling ASP.NET applications by elapsed time.

For information about how to use IIS Manager to configure a worker process to be recycled after a set elapsed time, see Configure Application Pool Recycling. For information about how to configure a worker process to be recycled after a set elapsed time by using a command-line procedure or scripts, see PeriodicRestartTime Metabase Property.