Microsoft KB Archive/886966

= FIX: Slow performance on startup when you process a high volume of messages through the SOAP adapter in BizTalk Server 2006 or in BizTalk Server 2004 =

Article ID: 886966

Article Last Modified on 1/2/2007

-

APPLIES TO


 * Microsoft BizTalk Server 2006 Standard Edition
 * Microsoft BizTalk Server 2006 Enterprise Edition
 * Microsoft BizTalk Server 2006 Developer Edition
 * Microsoft BizTalk Server 2004 Standard Edition
 * Microsoft BizTalk Server 2004 Partner Edition
 * Microsoft BizTalk Server 2004 Enterprise Edition
 * Microsoft BizTalk Server 2004 Developer Edition

-



Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



SYMPTOMS
In Microsoft BizTalk Server 2006 or in Microsoft BizTalk Server 2004, you may experience slow performance on startup when you process a high volume of messages through the SOAP adapter. When this problem occurs, it may take a long time before messages are processed by the SOAP adapter. The length of time may vary depending on the number of messages that must be processed.



CAUSE
This problem occurs when the SOAP adapter is initialized and the startup thread pool is not large enough to handle the number of SOAP requests. Therefore, the SOAP adapter must add more worker threads to the thread pool. This process may take some time to be completed. The process of adding more worker threads continues until the maximum thread limit is reached.

Note To maximize the number of threads that are available to process Web service requests, we recommend that the SOAP adapter and the orchestration run in different processes. To configure this, create a new BizTalk host instance in BizTalk Server Administrator.



BizTalk Server 2006
To resolve the issue that is described in the Symptoms section in BizTalk Server 2006, you must add the following registry key:

Additionally, you must add the following DWORD entries to this registry key:

We recommend that you set the value of the MinWorkerThreads DWORD entry by using the following formula:

Maximum number of messages that you expect to load on the SOAP adapter + 10%

For example, if you expect to load 200 messages on the SOAP adapter, the value should be 220. By default, the MinCompletionPortThreads DWORD entry is set to a value of 150.

To add this new registry key, follow these steps.

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.  Click Start, click Run, type regedit, and then click OK. Locate and then click the following registry subkey:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BTSSvc$ Note In this registry subkey,  is the name of the host that is associated with the host instance.

Note If the CLR Hosting key already exists, go to step 5. On the Edit menu, click New, and then click Key. Type CLR Hosting, and then press ENTER. Locate and then click the following registry subkey:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BTSSvc$

 On the Edit menu, click New, and then click DWORD Value.</li> Type MinCompletionPortThreads, and then press ENTER.</li> On the Edit menu, click New, and then click DWORD Value.</li> Type MinWorkerThreads, and then press ENTER.</li> Right-click MinWorkerThreads, and then click Modify.</li> In the Edit DWORD Value dialog box, click Decimal, and then type the value that is calculated by using the recommended formula.

Note For example, if you expect to load 200 messages on the SOAP adapter, the value should be 220.</li> On the File menu, click Exit.</li></ol>

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Service pack information
To resolve this problem, obtain the latest service pack for Microsoft BizTalk Server 2004. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

888751 How to obtain the latest BizTalk Server 2004 service pack

Prerequisites
No prerequisites are required.

Restart requirement
You do not have to restart your computer after you apply this hotfix.

Registry information
You must modify the registry after you apply this hotfix. For more information, see the &quot;More Information&quot; section.

Hotfix replacement information
This hotfix does not replace any other hotfixes.

File information
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel. <pre class="fixed_text">  Date         Time   Version     Size    File name ---  07-Oct-2004  21:16  3.0.5348.0  61,440  Microsoft.biztalk.soaptransport.dll Note Because of file dependencies, the most recent hotfix that contains these files may also contain additional files.

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section. This problem was corrected in BizTalk Server 2004 Service Pack 1.

<div class="moreinformation_section">

MORE INFORMATION
In BizTalk Server 2004, the hotfix that is described in the Resolution section introduces a new registry key that sets the minimum number of worker threads that are available to service SOAP requests on startup. Therefore, after you apply this hotfix, you must add the following registry key:

Additionally, you must add the following DWORD entries to this registry key:

We recommend that you set the value of the MinWorkerThreads DWORD entry by using the following formula:

Maximum number of messages that you expect to load on the SOAP adapter + 10%

For example, if you expect to load 200 messages on the SOAP adapter, the value should be 220. By default, the MinCompletionPortThreads DWORD entry is set to a value of 150.

To add this new registry key in BizTalk Server 2004, follow these steps.

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk. <ol> Click Start, click Run, type regedit, and then click OK.</li> Locate and then click the following registry subkey:

Note In this registry subkey,  is a GUID.</li> On the Edit menu, click New, and then click Key.</li> Type CLR Hosting, and then press ENTER.</li> Locate and then click the following registry subkey:

</li> On the Edit menu, click New, and then click DWORD Value.</li> Type MinCompletionPortThreads, and then press ENTER.</li> On the Edit menu, click New, and then click DWORD Value.</li> Type MinWorkerThreads, and then press ENTER.</li> Right-click MinWorkerThreads, and then click Modify.</li> <li>In the Edit DWORD Value dialog box, click Decimal, and then type the value that is calculated by using the recommended formula.

Note For example, if you expect to load 200 messages on the SOAP adapter, the value should be 220.</li> <li>On the File menu, click Exit.</li></ol>

Additional query words: BTS2006 BTS2004

Keywords: kbbiztalk2004-2006swept kbbiztalk2004sp1fix kbbiztalk2004presp1fix kbbug kbfix kbhotfixserver kbqfe KB886966

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.