This documentation is archived and is not being maintained.

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.


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

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.

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>

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>

Configuration section handler

System.Web.Configuration.HealthMonitoringSection

Configuration member

System.Web.Configuration.BufferModesCollection

System.Web.Configuration.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

Show: