zoukankan      html  css  js  c++  java
  • 解决WCF接口超时无响应 最大连接数问题

    如果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>

  • 相关阅读:
    help python(查看模块帮助文档)
    Vim常用快捷键
    tar 解压缩
    目前的学习计划
    学习方向
    C#转Python计划
    困惑的屌丝,求方向。。。
    修改PYTHONPATH的一种方法(在Window平台和Ubuntu下都有效)
    使用正则表达式统计vs项目代码总行数[转]
    日常工作细节汇总
  • 原文地址:https://www.cnblogs.com/wfwup/p/1875048.html
Copyright © 2011-2022 走看看