ServiceThrottling default values?

我们两清 提交于 2019-12-19 00:56:07

问题


Hi,

According to this link the default values of WCF 4.0 is this :

  • MaxConcurrentSessions: 16 * processorcount
  • MaxConcurrentSessions: MaxConcurrentCalls + MaxConcurrentSessions 100 * processorcount
  • MaxConcurrentSessions: 100 * processorcount

I know, not that clear. When looking in the documentation at MSDN(WCF 4.0) it says this :

  • maxConcurrentCalls : 16
  • maxConcurrentInstances : 26
  • maxConcurrentSessions : 10

If I however look at the WCF 4.5 some of the values is based on CPU like the first example

  • maxConcurrentCalls : 16 times the processor count
  • maxConcurrentInstances : The default is the sum of the default value of MaxConcurrentSessions and the default value of MaxConcurrentCalls
  • maxConcurrentSessions : The default is 100 times the processor count

So witch one is the correct one?


回答1:


Before WCF 4.0 the default values were

  • Concurrent Calls: 16
  • Concurrent Sessions: 10
  • Concurrent Instances: Concurrent Calls + Concurrent Sessions (26)

From WCF 4.0 onwards they are

  • Concurrent Calls: 16 * processor count
  • Concurrent Sessions: 100 * processor count
  • Concurrent Instances: Concurrent Calls + Concurrent Sessions


来源:https://stackoverflow.com/questions/10614903/servicethrottling-default-values

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