前段时间在做一个项目时遇到一个问题,主要是由于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" ?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="BizTalk Assemblies;Developer Tools;Tracking;Tracking\interop" />
</assemblyBinding>
</runtime>
<system.runtime.remoting>
<channelSinkProviders>
<serverProviders>
<provider id="sspi" type="Microsoft.BizTalk.XLANGs.BTXEngine.SecurityServerChannelSinkProvider,Microsoft.XLANGs.BizTalk.Engine" securityPackage="ntlm" authenticationLevel="packetPrivacy" />
</serverProviders>
</channelSinkProviders>
<application>
<channels>
<channel ref="tcp" port="0" name="">
<serverProviders>
<provider ref="sspi" />
<formatter ref="binary" typeFilterLevel="Full"/>
</serverProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
<system.net>
<connectionManagement>
<add address= "*" maxconnection = "20"/>
</connectionManagement>
</system.net>
</configuration>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="BizTalk Assemblies;Developer Tools;Tracking;Tracking\interop" />
</assemblyBinding>
</runtime>
<system.runtime.remoting>
<channelSinkProviders>
<serverProviders>
<provider id="sspi" type="Microsoft.BizTalk.XLANGs.BTXEngine.SecurityServerChannelSinkProvider,Microsoft.XLANGs.BizTalk.Engine" securityPackage="ntlm" authenticationLevel="packetPrivacy" />
</serverProviders>
</channelSinkProviders>
<application>
<channels>
<channel ref="tcp" port="0" name="">
<serverProviders>
<provider ref="sspi" />
<formatter ref="binary" typeFilterLevel="Full"/>
</serverProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
<system.net>
<connectionManagement>
<add address= "*" maxconnection = "20"/>
</connectionManagement>
</system.net>
</configuration>