[英]server GC settings in app.config dont get reflected
I created a simple .net 456 Console application. 我创建了一个简单的.net 456控制台应用程序。 In the app.config , I added 在app.config中,我添加了
<configuration>
<runtime>
<gcServer enabled="false"/>
</runtime>
</configuration>
And in 1 of the .cs file , I tried to read the settings value 在.cs文件的1个中,我尝试读取设置值
Console.Write($"Current Server GC mode : {System.Runtime.GCSettings.IsServerGC}");
The issue is : The Current Server GC mode always shows true, even though I set to false 问题是:即使我设置为false,“当前服务器GC”模式也始终显示true。
Updated: I have even tried with command set complus_gcserver=0. 更新:我什至尝试使用命令集complus_gcserver = 0。 I always get value to true 我总是获得真正的价值
尝试在Web.config而不是app.config中执行此操作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.