I have a .Net 4.0 Win Forms app that I run on two boxes, one is a Win7 box, one is a Win Server 2k3 box. The app on the 2k3 box has 2-3 intermittent hangs throughout the day that appear to be large garbage collections, while the win7 box never has these long garbage collections. Is it possible that the default GC on Win2k3 is different than the default on Win7?
Asked
Active
Viewed 1,695 times
1 Answers
4
No, it has not changed, as documented here: http://msdn.microsoft.com/en-us/library/ms229357.aspx
The following prints false
:
Console.WriteLine(System.Runtime.GCSettings.IsServerGC);
Try for yourself to make sure another developer hasn't tinkered with the configuration. :)

Jason Kresowaty
- 16,105
- 9
- 57
- 84
-
I can confirm that as of Server 2008 R2 `IsServerGC` is by default `false`. – vpiTriumph Apr 23 '12 at 20:13
-
It is also `false` by default for Windows Server 2012 R2. – NicolasF Jul 20 '16 at 11:50