This documentation is archived and is not being maintained.

<gcConcurrent> Element 

Specifies whether the common language runtime runs garbage collection on a separate thread.


The following sections describe attributes, child elements, and parent elements.


Attribute Description


Required attribute.

Specifies whether the runtime runs garbage collection concurrently.

Enabled Attribute

Value Description


Does not run garbage collection concurrently.


Runs garbage collection concurrently. This is the default.

Child Elements


Parent Elements

Element Description


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


Contains information about assembly binding and garbage collection.

The setting in the machine configuration file is the default for all .NET Framework applications. The application configuration file setting overrides the machine configuration file setting.

If your application is single-threaded and involves heavy user interaction, leave concurrent garbage collection enabled to minimize the application's pause time to perform garbage collection. If your application is an ASP.NET server application you do not need to alter the default value of the gcConcurrent element.

The following example shows how to disable garbage collection.

      <gcConcurrent enabled="false"/>