Active Server Pages with ODBC driver for DB2 creates more than 7,000 threads (316938)



The information in this article applies to:

  • Microsoft SNA Server 4.0 SP3
  • Microsoft SNA Server 4.0 SP4
  • Microsoft Host Integration Server 2000
  • Microsoft Host Integration Server 2000 SP1

This article was previously published under Q316938

SYMPTOMS

Microsoft Internet Information Server (IIS) enters a recursive loop and creates more than 7,000 threads under the following circumstances:
  • A Microsoft Active Server Pages (ASP) program uses ActiveX Data Objects (ADO) and Microsoft ODBC Driver for DB2 to retrieve data.

    -and-
  • The ASP page runs in Isolated or Pooled Out-of-Process mode on Microsoft Windows 2000.

    -or-
  • The ASP page runs in Out-of-Process mode on Microsoft Windows NT 4.0 Service Pack 6a.
The first ASP request completes and returns a result to the client. However, when the Web Application Manager (WAM) cleans up after the request, WAM enters a recursive loop that ends only when the system runs out of resources or when the CacheCreateThread function stops responding.

CAUSE

This problem occurs because the ODBC Driver for DB2 incorrectly calls the CoInitializeEx function on a newly created thread.

RESOLUTION

Microsoft recommends that you use the Microsoft OLE DB Provider for DB2 instead of ODBC Driver for DB2.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

For additional information about ODBC Driver for DB2 and OLE DB Provider for DB2, click the article numbers below to view the articles in the Microsoft Knowledge Base:

282472 IIS May Stop Responding or Terminate When You Use OLE DB Provider for DB2

247375 Inetinfo.exe Ends with MTS Event 4097 Using Microsoft ODBC for DB2


Modification Type:MajorLast Reviewed:10/12/2004
Keywords:kbbug kbnofix KB316938