Garbage Collector Server Mode

瀏覽次數:1 次
跳到第一則未讀訊息

Colin Green

未讀,
2017年5月16日 下午6:07:382017/5/16
收件者:SharpNEAT
Hi all,

If you've created your own client app to uses the SharpNEAT assemblies it is advised to include the setting in the app.config that switches on the server garbage collector. Without this setting teh GC will default to client app mode intended for UI applications, and I've observed this GC crashing under the intensive CPU load created by SharpNEAT. The Server GC also seems to result in SharpNEAT running faster overall. The main issue is that the client mode GC tries to run concurrently with the running threads and this mode appears to not be a good fit with SharpNEAT.

Cheers,

Colin

===================
Here's an example app.config file with the setting...


<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <startup> 
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
    </startup>
    <runtime>
      <gcServer enabled="true"/>
    </runtime>
</configuration>
回覆所有人
回覆作者
轉寄
0 則新訊息