user152949
user152949

Reputation:

What to set ServicePointManager.DefaultConnectionLimit to

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

Upvotes: 13

Views: 17244

Answers (2)

Samuel Jack
Samuel Jack

Reputation: 33270

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.

Upvotes: 12

Scott Densmore
Scott Densmore

Reputation: 1469

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.

Upvotes: 6

Related Questions