首页 新闻 会员 周边

machine.config 设置问题

0
悬赏园豆:50 [已关闭问题] 关闭于 2015-11-05 17:53

本人在machine.config中的processModel中做如下设置:

<processModel enable="true" requestQueueLimit="10000" maxWorkerThreads="100" maxIoThreads="50" minWorkerThreads="50" minIoThreads="30"/>

通过ThreadPool.GetMinThreads并没有获取到设置的最小工作线程数:50,

但是,

通过程序 ThreadPool.SetMaxThreads(100,50); ThreadPool.SetMinThreads(50,30); 来设置,是能够通过ThreadPool.GetMinThreads正常获取的。

请问各位,知道这是什么原因吗?

propbin的主页 propbin | 初学一级 | 园豆:80
提问于:2015-11-02 11:21
< >
分享
所有回答(1)
0

配置文件改完后要重启。

Firen | 园豆:5385 (大侠五级) | 2015-11-04 15:17
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册