This documentation is archived and is not being maintained.

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")]
[TypeConverterAttribute(typeof(InfiniteTimeSpanConverter))]
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 = 
                    processModelSection.IdleTimeout;

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



.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: