WCF and threadpool responsiveness under high processor usage

坚强是说给别人听的谎言 提交于 2019-12-12 09:58:29

问题


We are having trouble controlling a long running process that uses WCF to send start/stop commands.

The problem seems to be that WCF does not respond to the requests when the CPU load is high. Unfortunately, high CPU on as many cores as possible is necessary for the application in question as it needs to perform a large number of numeric calculations.

Could the problem be related to the use of the thread pool to dispatch requests in WCF? This (somewhat dated) link suggests that it could:

"we don't spin up new threads when CPU usage is higher than 80%"


回答1:


WCF has throttling mechanism that regulates the number of concurrent connections/sessions.

If your performance tests indicate that server can process more requests albeit having considerable load you can try to tune throttling parameters of WCF.

Here's the link with related information



来源:https://stackoverflow.com/questions/4907025/wcf-and-threadpool-responsiveness-under-high-processor-usage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!