limits Element for siteDefaults for sites [IIS Settings Schema]

Note

For more information about the limits element, see the following topic on the Microsoft IIS.net Web site: Default Limits for Web Sites <limits>.

Configures default settings to limit the amount of bandwidth, the number of connections, or the amount of time for connections to sites on the server.

Syntax

Attributes and Elements

The following sections describe attributes, child elements, and parent elements for this section.

Attributes

Attribute

Description

connectionTimeout

Optional timeSpan attribute.

Specifies the time (in seconds) that IIS waits before it disconnects a connection that is considered inactive. Connections can be considered inactive for the following reasons:

  • The HTTP.sys Timer_ConnectionIdle timer expired. The connection expired and remains idle.

  • The HTTP.sys Timer_EntityBody timer expired. The connection expired before the request entity body arrived. When it is clear that a request has an entity body, the HTTP API turns on the Timer_EntityBody timer. Initially, the limit of this timer is set to the connectionTimeout value. Each time another data indication is received on this request, the HTTP API resets the timer to give the connection more minutes as specified in the connectionTimeout attribute.

  • The HTTP.sys Timer_AppPool timer expired. The connection expired because a request waited too long in an application pool queue for a server application to dequeue and process it. This time-out duration is connectionTimeout.

The default value is 00:02:00 (two minutes).

maxBandwidth

Optional uint attribute.

Specifies the maximum network bandwidth used for a site. Use this setting to help prevent overloading the network with IIS activity. The valid range is 0 to 1023, or 4294967295 (unlimited).

The default value is 4294967295.

maxConnections

Optional uint attribute.

Specifies the maximum number of simultaneous connections to a site. The valid range is 0 to 4294967295 (unlimited).

The default value is 4294967295.

Child Elements

None.

Parent Elements

Element

Description

configuration

Specifies the root element in every configuration file that is used by IIS 7.

system.applicationHost

Specifies the root element for configuring Web process settings.

sites

Specifies configuration settings for all sites on the server, and includes settings for applications and virtual directories in those sites.

siteDefaults

Specifies default settings for all sites on the server.

Remarks

For more information about the limits element, see the following topic on the Microsoft IIS.net Web site: Default Limits for Web Sites <limits>.

Element Information

Configuration locations

ApplicationHost.config

Requirements

Microsoft Internet Information Services (IIS) version 7.0