Microsoft KB Archive/177226

= Memory Usage Increases When Querying an Access 97 DB w/ ASP =

Article ID: 177226

Article Last Modified on 6/22/2005

-

APPLIES TO


 * Microsoft Internet Information Server 2.0
 * Microsoft Internet Information Server 3.0

-



This article was previously published under Q177226



We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:

http://www.microsoft.com/technet/security/prodtech/IIS.mspx



SYMPTOMS
When you use Active Server Pages (ASP) to connect to an Access 97 Datasource, memory usage may increase and ASP pages may take a long time to complete requests.

The memory usage level may return to normal after the number of connections to the ASP pages decreases.



CAUSE
By default, an Access 97 Datasource has two parameters that affect system performance: MaxBufferSize and Threads. The default value for the MaxBufferSize parameter is 512 and the default value for Threads parameter is 3.



RESOLUTION
To improve performance and minimize memory usage, configure these parameters as follows:


 * 1) Open the Control Panel (click Start, point to Settings and then click Control Panel.
 * 2) Click the ODBC Control Panel tool.
 * 3) In the ODBC Datasource Administrator, click the "System DSN" tab.
 * 4) Select an Access 97 DSN and click Configure.
 * 5) In the ODBC Microsoft Access 97 Setup dialog box, click Advanced on the right of the screen.
 * 6) In the Set Advanced Options dialog box, select the MaxBufferSize parameter. In the Value of MaxBufferSize box, enter 8192.
 * 7) Select the Threads parameter. In the Value of Threads box, enter 20.
 * 8) Click OK to commit the changes and close the Set Advanced Options dialog box. Click OK to exit the ODBC Microsoft Access 97 Setup dialog box.
 * 9) Quit the ODBC Datasource Administrator.



MORE INFORMATION
The recommended values of MaxBufferSize and Threads (8192 and 20) are resource dependent and should work in most cases. If the symptoms do not improve under high load, increase the value of these settings to utilize available resources.

Keywords: kbprb KB177226

-

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

© Microsoft Corporation. All rights reserved.