解决WCF接口超时无响应 最大连接数问题
2010-11-11 17:03
246 查看
如果WCF接口代码操作时间比较费时,那么当连接数占满时,新的请求将会返回超时错误,请参考以下代码,加在wcf host主机配置文件内
<serviceBehaviors>
<!--
maxConcurrentCalls - 服务中同时存在的最大活动消息数,默认值为 16
maxConcurrentInstances - 服务中同时存在的InstanceContext的最大数量,默认值为26
maxConcurrentSessions - 服务中同时存在的最大会话数,默认值为 10
-->
<behavior name="h.SOA.E**.Service1Behavior">
<serviceThrottling maxConcurrentCalls="200" maxConcurrentSessions="1000" maxConcurrentInstances="50000" />
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
<behavior name="h.SOA.E**.EsalesServiceBehavior">
<serviceThrottling maxConcurrentCalls="200" maxConcurrentSessions="1000" maxConcurrentInstances="50000" />
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
<serviceBehaviors>
<!--
maxConcurrentCalls - 服务中同时存在的最大活动消息数,默认值为 16
maxConcurrentInstances - 服务中同时存在的InstanceContext的最大数量,默认值为26
maxConcurrentSessions - 服务中同时存在的最大会话数,默认值为 10
-->
<behavior name="h.SOA.E**.Service1Behavior">
<serviceThrottling maxConcurrentCalls="200" maxConcurrentSessions="1000" maxConcurrentInstances="50000" />
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
<behavior name="h.SOA.E**.EsalesServiceBehavior">
<serviceThrottling maxConcurrentCalls="200" maxConcurrentSessions="1000" maxConcurrentInstances="50000" />
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
相关文章推荐
- 解决WCF接口超时无响应 最大连接数问题
- 解决WCF接口超时无响应 最大连接数问题
- 解决WCF接口无法传递object参数的问题
- Oracle超出最大连接数问题及解决(…
- 解决HttpURLConnection setConnectTimeout超时无响应的问题
- wcf服务配置以及解决超时问题
- 如何解决MySQL超过最大连接数问题
- 解决超过最大连接数问题
- 微信验证开发者代码,解决微信请求URL超时,你的服务器没有正确响应Token验证,请阅读消息接口使用指南
- 问题:“Timeout 时间已到。在操作完成之前超时时间已过或服务器未响应。”的解决方法
- 从客户端解决远程桌面超出最大终端连接数问题
- 解决WCF接口无法传递object参数的问题
- 找到一篇比较全面的解决mysql最大连接数Too many connections问题的帖子
- 如何解决远程连接中的超过最大连接数问题
- Oracle超出最大连接数问题及解决
- 解决远程终端超出最大连接数的问题
- VS2010 WCF 远程服务器返回了意外响应: (400) Bad Request等问题解决方案
- 解决HttpURLConnection setConnectTimeout超时无响应的问题
- 压测系统交易出现响应超时性能问题分析及解决。
- asp.net的Web应用报“超时时间已到。在操作完成之前超时时间已过或服务器未响应”问题的解决