设置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);
测试结果:
work,i/o最小线程设置_编程

 

work,i/o最小线程设置_编程语言_02