Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ProcessModelSection.IdleTimeout Property

Gets or sets a value indicating the period of inactivity after which ASP.NET automatically ends the worker process.

Namespace:  System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[ConfigurationPropertyAttribute("idleTimeout", DefaultValue = "10675199.02:48:05.4775807")]
public TimeSpan IdleTimeout { get; set; }

Property Value

Type: System.TimeSpan
A TimeSpan value indicating the idle time. The default value is Infinite, which corresponds to MaxValue.

The worker process is restarted (bounced) when the IdleTimeout property value is reached. By default, only two conditions cause the process to bounce: the process exceeds the allowed memory limit, or the process exceeds the allowed number of requests that can be queued. You can add other conditions to the default ones. For example, you can use the IdleTimeout property to limit the time the worker process is idle.

The following code example shows how to access the IdleTimeout property.

                // Get the current IdleTimeout property value.
                TimeSpan idleTimeout = 

                // Set the IdleTimeout property to TimeSpan.Parse("12:00:00").
                processModelSection.IdleTimeout = 

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
© 2015 Microsoft