INFO: Do Not Send ServerXMLHTTP or WinHTTP Requests to the Same Server (316451)



The information in this article applies to:

  • Microsoft XML 3.0
  • Microsoft XML 3.0 SP1
  • Microsoft XML 3.0 SP2
  • Microsoft XML 4.0

This article was previously published under Q316451

SUMMARY

Using ServerXMLHTTP or WinHTTP objects to make recursive Hypertext Transfer Protocol (HTTP) requests to the same Internet Information Server (IIS) server is not recommended. More specifically, the calling Active Server Page (ASP) should not send requests to an ASP in the same virtual directory or to another virtual directory in the same pool or process. This can result in poor performance due to thread starvation.

If the ServerXMLHTTP or WinHTTP component must send a request to another ASP on the same server, the target ASP must be located in a different virtual directory and set to run in high isolation. Avoid using ServerXMLHTTP or WinHTTP to send a request to an ASP that is located in the same virtual directory.

MORE INFORMATION

A finite number of worker threads (in the Inetinfo.exe or Dllhost.exe process) is available to execute ASP pages. If all of the ASP worker threads send HTTP requests back to the same Inetinfo.exe or Dllhost.exe process on the server from which the requests are sent, the Inetinfo.exe or Dllhost.exe process may deadlock or stop responding (hang), because the pool of worker threads to process the incoming requests will be exhausted. This is by design.

If a single recursive request causes IIS to deadlock, the typical cause is that ASP script debugging is enabled. When debugging is enabled, only one ASP worker thread is available to process the incoming requests for ASP pages. The workaround is to either disable debugging or separate all of the ASP pages into isolated virtual directories and processes.

REFERENCES

For additional information, click the article numbers below to view the articles in the Microsoft Knowledge Base:

216580 Blocking/Serialization When Using InProc Component (DLL) from ASP

290761 Frequently Asked Questions about ServerXMLHTTP


Modification Type:MajorLast Reviewed:1/25/2002
Keywords:kbDSupport kbinfo KB316451