Experience using gcServer=“true” to set garbage collector for .NET

后端 未结 3 1826
梦毁少年i
梦毁少年i 2020-12-29 23:50

Has someone used a configuration enabling the garbage collector optimized for multi-processor machines using Aspnet.config with :



        
3条回答
  •  渐次进展
    2020-12-30 00:26

    First, Concurrent and Server are mutually exclusive options. See this blog post for some details on server GC misconceptions. However, ASP.NET, by default, hosts the server GC (see Scott Hanselman's discussion), so there will be no difference there.

    I'd recommend sticking with server instead of concurrent for an ASP.NET website. For a user-mode application, the concurrent GC has been user responsiveness, since the server gc will cause "hangs".

    I have used the server GC, and noticed significant improvements in certain situations.

    The server mode GC does help user apps, though, if you're user application is working with huge memory pools, and getting highly fragmented.

提交回复
热议问题