Specify to Run Server Garbage Collection (gcServer)

To enable Garbage Collector to work in server mode put follwing section in config:

  <gcServer enabled="true" />

When to use:

  • On computers with more ¬†than two cores.
  • You have multithreaded service¬†not hosted in IIS.

Typical candidate: self-hosted WCF service.
This option improves service performance and consumes more memory.

For details see:


2 Responses to “Specify to Run Server Garbage Collection (gcServer)”

  1. Chan Says:

    My computer with multiple cores, but my application is ASP.NET app hosted in IIS. So, should I turn it on?

    Thank you

    • jmalinovskis Says:

      No – because IIS has own garbage collecting mechanism (see application pool recycling settings).

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: