Share via


bufferModes Element for healthMonitoring (ASP.NET Settings Schema)

Defines the buffering capabilities for a provider.

This element is new in the .NET Framework version 2.0.

<configuration> Element
  system.web Element (ASP.NET Settings Schema)
    healthMonitoring Element (ASP.NET Settings Schema)
      bufferModes Element for healthMonitoring (ASP.NET Settings Schema)

<bufferModes>
  <add.../>
  <remove.../>
  <clear />
</bufferModes>

Attributes and Elements

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

Attributes

None.

Child Elements

Element

Description

add

Optional element.

Configures a buffer mode and adds it to the HealthBufferModeSettings collection.

clear

Optional element.

Removes all buffer mode configurations from the HealthBufferModeSettings collection.

remove

Optional element.

Removes the specific buffer mode configuration from the HealthBufferModeSettings collection.

Parent Elements

Element

Description

configuration

Specifies the root element in every configuration file that is used by the common language runtime and the .NET Framework applications.

system.web

Specifies the root element for the ASP.NET configuration section.

healthMonitoring

Configures an application for health monitoring.

Remarks

Default Configuration

The following default bufferModes element is configured in the root Web.config file in the .NET Framework version 2.0.

<bufferModes>
     <add name="Critical Notification" maxBufferSize="100" maxFlushSize="20" 
          urgentFlushThreshold="1" regularFlushInterval="Infinite" urgentFlushInterval="00:01:00" 
          maxBufferThreads="1" />
     <add name="Notification" maxBufferSize="300" maxFlushSize="20"
          urgentFlushThreshold="1" regularFlushInterval="Infinite" urgentFlushInterval="00:01:00" 
          maxBufferThreads="1" />
     <add name="Analysis" maxBufferSize="1000" maxFlushSize="100" urgentFlushThreshold="100" 
          regularFlushInterval="00:05:00" urgentFlushInterval="00:01:00" maxBufferThreads="1" />
     <add name="Logging" maxBufferSize="1000" maxFlushSize="200" urgentFlushThreshold="800" 
          regularFlushInterval="00:30:00" urgentFlushInterval="00:05:00" maxBufferThreads="1" />
</bufferModes>

Example

The following code example shows how to configure the buffer modes for health-status monitoring.

<healthMonitoring Enabled="true" heartBeatInterval="0">

  <bufferModes>

    <add name="Critical Notification"
      maxBufferSize="100"
      maxFlushSize="20"
      urgentFlushThreshold="1"
      regularFlushInterval="Infinite"
      urgentFlushInterval="00:01:00"
      maxBufferThreads="1" />

    <add name="Notification"
      maxBufferSize="300"
      maxFlushSize="20"
      urgentFlushThreshold="1"
      regularFlushInterval="Infinite"
      urgentFlushInterval="00:01:00"
      maxBufferThreads="1" />
  
  </bufferModes>

</healthMonitoring>

Element Information

Configuration section handler

System.Web.Configuration.HealthMonitoringSection

Configuration member

System.Web.Configuration.BufferModesCollection

HealthMonitoringSection.BufferModes

Configurable locations

Machine.config

Root level Web.config

Application level Web.config

Requirements

Microsoft Internet Information Services (IIS) 5.0, 5.1, or 6.0

The .NET Framework version 2.0

Microsoft Visual Studio 2005

See Also

Tasks

How to: Lock ASP.NET Configuration Settings

Reference

healthMonitoring Element (ASP.NET Settings Schema)

add Element for bufferMode for healthMonitoring (ASP.NET Settings Schema)

remove Element for bufferModes for healthMonitoring (ASP.NET Settings Schema)

clear Element for bufferModes for healthMonitoring (ASP.NET Settings Schema)

System.Configuration

System.Web.Configuration

Concepts

ASP.NET Configuration Overview

ASP.NET Web Server Controls and Browser Capabilities

Securing ASP.NET Configuration

ASP.NET Configuration Scenarios

Other Resources

ASP.NET Configuration Files

ASP.NET Configuration Settings

General Configuration Settings (ASP.NET)

ASP.NET Configuration API