打赏

work,i/o最小线程设置

设置work i/o最小线程有两种方式
1.通过配置文件设置,影响所有iis部署程序(待验证)
2.通过程序代码设置,iis上部署的程序互不影响
int minWorker, minIOC; //Get the current settings. ThreadPool.GetMinThreads(out minWorker, out minIOC); //Change the minimum number of worker threads to 300, I / O threads to 200 ThreadPool.GetMaxThreads(out minWorker, out minIOC); ThreadPool.SetMinThreads(600, 600);
测试结果:

 

 


posted @ 2018-08-20 16:27  刘奇云  阅读(309)  评论(0编辑  收藏  举报