在web.config中设置使用.net core自身的内存管理
在web.config中设置使用.net core自身的内存管理,好像内存使用率会低很多。
<configuration>
<system.webServer>
<aspNetCore processPath="dotnet" arguments=".\YourApp.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout">
<environmentVariables>
<environmentVariable name="COMPlus_GCDenyAdaptiveMove" value="1" />
<environmentVariable name="COMPlus_GCLatencyMode" value="1" />
</environmentVariables>
</aspNetCore>
</system.webServer>
</configuration>

浙公网安备 33010602011771号