前段时间在做一个项目时遇到一个问题,主要是由于bizTalk为了提高处理速度,采用的是多线程进行处理,默认是2个,原来的接收程序没有考虑多线程,产生了一些问题,后来经过咨询发现biztalk的并发线程数量是可以配置的,根据具体境况设置合适的数值。
修改步骤:
1,在BizTalk安装目录下,打开BTSNTSvc.exe.config文件
2,在结束标签</configuration>之前加上如下配置信息
<configuration>
…
<system.net>
<connectionManagement>
<add address= "*" maxconnection = "20"/>
</connectionManagement>
</system.net>
</configuration>
3,重启BizTalk服务
BTSNTSvc.exe.config文件的全部内容如下:
 <?xml version="1.0" ?>
<?xml version="1.0" ?> <configuration>
<configuration> <runtime>
    <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <probing privatePath="BizTalk Assemblies;Developer Tools;Tracking;Tracking\interop" />
            <probing privatePath="BizTalk Assemblies;Developer Tools;Tracking;Tracking\interop" /> </assemblyBinding>
        </assemblyBinding> </runtime>
    </runtime> 
     <system.runtime.remoting>
    <system.runtime.remoting> 
     <channelSinkProviders>
        <channelSinkProviders> <serverProviders>
            <serverProviders> <provider id="sspi" type="Microsoft.BizTalk.XLANGs.BTXEngine.SecurityServerChannelSinkProvider,Microsoft.XLANGs.BizTalk.Engine" securityPackage="ntlm" authenticationLevel="packetPrivacy" />
                <provider id="sspi" type="Microsoft.BizTalk.XLANGs.BTXEngine.SecurityServerChannelSinkProvider,Microsoft.XLANGs.BizTalk.Engine" securityPackage="ntlm" authenticationLevel="packetPrivacy" /> </serverProviders>
            </serverProviders> </channelSinkProviders>
        </channelSinkProviders> 
     <application>
        <application> <channels>
            <channels> <channel ref="tcp" port="0" name="">
                <channel ref="tcp" port="0" name=""> <serverProviders>
                    <serverProviders> <provider ref="sspi" />
                        <provider ref="sspi" /> <formatter ref="binary" typeFilterLevel="Full"/>
                        <formatter ref="binary" typeFilterLevel="Full"/> </serverProviders>
                    </serverProviders> </channel>
                </channel> </channels>
            </channels> </application>
        </application> </system.runtime.remoting>
    </system.runtime.remoting>
 <system.net>
   <system.net>
 <connectionManagement>
      <connectionManagement>
 <add address= "*" maxconnection = "20"/>
         <add address= "*" maxconnection = "20"/>
 </connectionManagement>
      </connectionManagement>
 </system.net>
   </system.net> </configuration>
</configuration>
 
                    
                     
                    
                 
                    
                 
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号