What to set ServicePointManager.DefaultConnectionLimit to

前端 未结 2 1109
野的像风
野的像风 2020-12-05 16:14

ServicePointManager.DefaultConnectionLimit sets the maximum number of concurrent sessions for a Worker Role, but how can I find the best value here?

相关标签:
2条回答
  • 2020-12-05 16:39

    According to Microsoft Support, 12 * [Number of logical CPUs] is a good value.

    If you're using .Net 4.5, the defaults are already set to more sensible values.

    0 讨论(0)
  • 2020-12-05 16:43

    This is the best advise on getting the value is here on forums. Also read the knowledge base article listed.

    The point is that the default of 2 will get you into trouble with connection drops.

    0 讨论(0)
提交回复
热议问题