RecyclingSettings Class [IIS 7 and higher]
Specifies recycling settings for worker processes.
The following table lists the properties exposed by RecyclingSettings.
A read/write boolean value. true if the Windows Process Activation Service (WAS) starts up another worker process to replace one that is still running; otherwise, false. The default is false. Set DisallowOverlappingRotation to true if the worker process loads any application code that does not support two worker processes at the same time.
A read/write boolean value. true if WAS rotates worker processes in an application pool after the application pool configuration has changed; otherwise, false. The default is false.
Application pool configuration changes do not affect worker processes that are already running. Set DisallowRotationOnConfigChange to true if the worker process loads any application code that does not support two worker processes at the same time.
A read/write sint32 value that contains a mask that specifies which recycling events will be logged. The possible values are listed later in the Remarks section.
A PeriodicRestartSettings object that specifies the conditions under which worker processes will be recycled.
Instances of this class are contained in the Recycling property of the ApplicationPool class and the ApplicationPoolElementDefaults class. ApplicationPoolElementDefaults is in turn exposed as the GlobalApplicationPoolDefaults property on the Server class.
The following table lists the possible values and the associated keywords and recycling events for the LogEventOnRecycle property. The defaults are 1 (Time), 8 (Memory), and 128 (PrivateMemory).
The time specified in PeriodicRestartSettings.Time has elapsed since the last recycle. Enabled by default.
The number of requests specified in PeriodicRestartSettings.Requests has been reached.
A scheduled recycle specified in PeriodicRestartSettings.Schedule has occurred.
A used or virtual memory limit specified in PeriodicRestartSettings.Memory has been reached. Enabled by default.
An ISAPI has failed to respond to a health-monitoring request.
An administrator has manually triggered a recycle.
Application pool configuration changes have been made.
Private memory has reached the amount specified in PeriodicRestartSettings.PrivateMemory. Enabled by default.