ProcessModelSection.RequestLimit Property

Definition

Gets or sets a value indicating the number of requests allowed before a worker process is recycled.

C#
[System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteIntConverter))]
[System.Configuration.ConfigurationProperty("requestLimit", DefaultValue=2147483647)]
[System.Configuration.IntegerValidator(MinValue=0)]
public int RequestLimit { get; set; }

Property Value

The number of allowed requests. The default is Infinite.

Attributes

Examples

The following code example shows how to use the RequestLimit property.

C#

// Get the current RequestLimit property value.
int reqLimit = 
    processModelSection.RequestLimit;

// Set the RequestLimit property to 4096.
processModelSection.RequestLimit = 4096;

Remarks

If the number of requests is exceeded, ASP.NET automatically launches a new worker process to take the place of the current one.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1