调整dotNet 服务器性能需要手动编辑 %SYSROOT%\Microsoft.Net\Framework\v.{VERSION}\CONFIG\machine.config 文件, 修改
maxconnection 2 ==> 12 * #CPUs
maxIoThreads 20 ==> 100
maxWorkerThreads 20 ==> 100
minFreeThreads 8 ==> 88*#CPUs
minLocalRequestFreeThreads 4 ==> 76*#CPUs
其中#CPUs为服务器的CPU个数
.Net Framework 2.0 ,Intel Core2 双核配置如下
<system.net>
<connectionManagement>
<add address = "*" maxconnection = "24" />
</connectionManagement>
</system.net>
<system.web>
<httpRuntime minFreeThreads="176" minLocalRequestFreeThreads="152"/>
<processModel autoConfig="false" maxWorkerThreads="100" maxIoThreads="100"/>
...
maxconnection 2 ==> 12 * #CPUs
maxIoThreads 20 ==> 100
maxWorkerThreads 20 ==> 100
minFreeThreads 8 ==> 88*#CPUs
minLocalRequestFreeThreads 4 ==> 76*#CPUs
其中#CPUs为服务器的CPU个数
.Net Framework 2.0 ,Intel Core2 双核配置如下
<system.net>
<connectionManagement>
<add address = "*" maxconnection = "24" />
</connectionManagement>
</system.net>
<system.web>
<httpRuntime minFreeThreads="176" minLocalRequestFreeThreads="152"/>
<processModel autoConfig="false" maxWorkerThreads="100" maxIoThreads="100"/>
...