Article ID: 840875 - Last Review: December 3, 2007 - Revision: 2.9 BUG: IIS 6.0 is slower than IIS 5.0 when you use the WriteClient API to send dataSUMMARYMicrosoft Internet Information Services (IIS) 6.0 takes a longer time to send HTTP response data packets through the WriteClient API than IIS 5.0 takes. You experience this problem with
applications that use the synchronous ISAPI WriteClient API to send responses. You also experience this problem with
applications that make more than one asynchronous ISAPI WriteClient call to send responses. This article lists the common symptoms
that you may see when you experience this problem. This article also lists two
methods that you can use to work around this
problem. SYMPTOMSYou may notice that Microsoft Internet Information Services
(IIS) 6.0 takes a longer time to send HTTP response data packets through the WriteClient API than IIS 5.0. This condition typically occurs with the
following types of applications:
CAUSEThis problem occurs because of a difference in buffering
mechanisms in Http.sys in IIS 6.0 and in IIS 5.0. WORKAROUNDTo work around this problem, use one of the following
methods, depending on your situation. Method 1: Add the MaxCopyThreshold registry entryYou may also experience this problem in applications that use the WriteClient API for asynchronous calls and that make two or more WriteClient calls per HTTP response. If you suspect that you are experiencing this problem, add the MaxCopyThreshold registry entry to the following registry key:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters To improve performance and memory usage, we recommend that you set
the MaxCopyThreshold registry entry to the lowest possible value. We recommend
that you test the following values, and then use the lowest value that corrects
this problem:
322756
(http://support.microsoft.com/kb/322756/
)
How to back up and restore the registry in Windows
Method 2: Add the EnableCopySend registry entryUse this method only for ISAPIs that perform synchronous send operations. You can also use this workaround if at least one synchronous ISAPI experiences a network delay. However, this method does not work in an environment where the majority of the clients use slow links, such as modems. To apply this workaround, add the EnableCopySend registry
entry to the following registry subkey, and then set the registry entry to 1: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters To do this, follow these steps:Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base: 322756
(http://support.microsoft.com/kb/322756/
)
How to back up and restore the registry in Windows
STATUSMicrosoft
has confirmed that this is a problem in the Microsoft products that are listed
in the "Applies To" section. MORE INFORMATIONThe following lists implications to consider when you use
either the EnableCopySend registry entry or the MaxCopyThreshold registry
entry:
REFERENCESIf response buffering is disabled in IIS 6.0, you also
experience this problem with Active Server Pages (ASP). By default, response
buffering is enabled in IIS 6.0, and you do not experience this problem. For
additional information about response buffering, visit the following Microsoft
Web site: http://msdn2.microsoft.com/en-us/library/ms526001.aspx
(http://msdn2.microsoft.com/en-us/library/ms526001.aspx)
For more information about the WriteClient API, visit the following Microsoft Developer Network (MSDN) Web
site:http://msdn2.microsoft.com/en-us/library/ms932763.aspx
(http://msdn2.microsoft.com/en-us/library/ms932763.aspx)
For more information about Debugging Tools for Windows, visit the
following Microsoft Web site: http://www.microsoft.com/whdc/devtools/debugging/default.mspx
(http://www.microsoft.com/whdc/devtools/debugging/default.mspx)
For additional information,
click the following article number to view the article in the Microsoft
Knowledge Base: 555093
(http://support.microsoft.com/kb/555093/
)
Very slow data transfers using RDS under Windows Server 2003, all versions
APPLIES TO
| Article Translations
|
Back to the top
