Is the CLR automatically detecting if the garbage collector should run in server mode?

I saw from a previous question that the CLR has workstation and server modes for its garbage collector. I know they can be set from config using gcServer

.

If you haven't specified this, is the CLR using any magic to decide if the garbage collector should run in server mode? Something based on CPU counting or memory profiling, perhaps?

0


source to share


2 answers


Of course not. The CLR runs in parallel unless you explicitly tell it to.



+2


source


According to the documentation you linked to, the default is "false". I would expect this to be consistent across all installations and instances, the MS documentation is pretty good at this.



The only caveat is that the installer (or someone) may be setting this parameter in machine.config (for ASP.NET) to "true" on the O / S server. This is pure speculation and probably not.

0


source







All Articles