我读Wenlong Dong's blog article about the default throttling settings for WCF services in WCF 4限制设置,并有一个关于默认设置的值问题:WCF 4:默认情况下,WCF服务
MaxConcurrentSessions:默认为100 * ProcessorCount
MaxConcurrentCalls:默认为16 * ProcessorCount
MaxConcurrentInstances:默认为以上两项的总和,其中 如下与之前相同的模式。
是否ProcessorCount参考:
- 如果超线程已启用的物理CPU /插槽
- 物理核心的所有CPU
- 逻辑内核的数量,数数?
感谢,
- 帕特里克
如果启用超线程,您将看到内核* 2。例如,在我的i7机器上,ProcessorCount是8,并根据该限制设置。 – IdoFlatow
我有这个值= 2. 我添加到行为这一行 然后我打开这个设置,并读取其他两个值,他们是16和100 但如果它乘以处理器计数从环境,它将是32和200 为什么我看到默认为16和100? 以这种方式获得其他值 var config = WebConfigurationManager.OpenWebConfiguration(“/”); –
Alexey