【发布时间】:2010-10-28 09:19:09
【问题描述】:
我在 .Net WCF 服务中间歇性地收到以下异常。 "位于http://MyServer/TestWCF/MyService.svc 的 HTTP 服务太忙了。"
我错过了什么吗?
我正在使用基本的 http 绑定并已启用 WCF 限制。
<basicHttpBinding>
<binding name="BasicHttpBinding_MyService" maxReceivedMessageSize="2147483647"
messageEncoding="Text" textEncoding="utf-16" sendTimeout="00:01:00" >
<readerQuotas maxStringContentLength="2147483647" maxArrayLength="163840000"
maxDepth="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="16384" />
</binding>
。 . . .
<behavior name="MyWCFServices.MyServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
<serviceThrottling
maxConcurrentCalls="16"
maxConcurrentInstances="2147483647"
maxConcurrentSessions="10"/>
</behavior>
限制是否有助于解决问题? 另外,我可以知道为高流量网站节流的推荐参数值吗?
【问题讨论】:
标签: wcf web-services throttling