我在 .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>
节流有助于解决问题吗?另外,我可以知道为高流量网站节流的推荐参数值吗?