在高处理器使用率下的WCF和线程池响应能力 [英] WCF and threadpool responsiveness under high processor usage

查看:84
本文介绍了在高处理器使用率下的WCF和线程池响应能力的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们无法控制使用WCF发送启动/停止命令的长时间运行的过程.

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

问题似乎是当CPU负载很高时WCF不响应请求.不幸的是,有问题的应用程序需要在尽可能多的内核上使用高CPU,因为它需要执行大量的数值计算.

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.

问题是否与在WCF中使用线程池调度请求有关?这个(有点过时的)链接表明它可以:

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:

"

推荐答案

WCF具有限制机制,可调节并发连接/会话的数量.

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

如果性能测试表明服务器虽然负载很大,但可以处理更多请求,则可以尝试调整WCF的限制参数.

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

此处的链接为相关信息

这篇关于在高处理器使用率下的WCF和线程池响应能力的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆