Article ID: 914156 - Last Review: December 3, 2007 - Revision: 1.2 When you host a Web application that is mainly composed of ASP files in Internet Information Services, you notice slow performance, or you receive error messagesSYMPTOMSIn Microsoft Internet Information Services (IIS), you host a Web application that is mainly composed of Active Server Pages (ASP) files. When a client computer requests an ASP file, one or more of the following issues occur:
CAUSEThese issues occur when one or both of the following conditions are true:
RESOLUTIONTo resolve these issues, modify the design of the ASP Web application. Typically, you can use the following methods to resolve these issues:
MORE INFORMATIONThese issues occur because of the way in which the ASP files are cached. The ASP files are cached as templates that consist of the main ASP file and every include file. If two ASP files have the same include file, two copies of the same include file may be in the cache. For example, if both the Main.asp file and the Login.asp file include the CommonFunctions.asp file, the CommonFunctions.asp file is saved in the template for the Main.asp file and in the template for the Login.asp file. Therefore, two copies of the CommonFunctions.asp file are cached in memory. Additionally, if the CommonFunctions.asp file has include files, two copies of those files are cached in memory. Note By default, the ASP template cache stores up to 500 templates in IIS 6.0. You can configure this setting in the AspScriptFileCacheSize property in the Metabase.xml file. The size of the ASP template cache increases significantly when additional ASP files and a potentially large number of include files are added to the cache. The number of include files also increases significantly. If the ASP files do not use the functionality that is provided by the include files, you can remove the #include statement for the files that are not used. If the Web application needs the functionality that is provided by multiple include files, you can consolidate the functionality into a COM object. Typically, we recommend that you consolidate the functionality into a COM object when multiple ASP files need the functionality that is provided by five or more include files. For example, consider the following scenario:
If you consolidate the functionality that is provided by the include files into a COM object, a single instance of the code is required. This code can be called when the functionality is needed. In this scenario, the ASP template cache is approximately 75 MB after you consolidate the functionality that is provided by the include files into a COM object. Therefore, you can increase the default ASP template cache size to 1000 templates, and the ASP template cache is only 150 MB. Note You must modify the main ASP files to use the COM object instead of the include files. The use of COM objects instead of the include files has many benefits. The benefits include the following:
You can use the Debug Diagnostics tool to determine whether these issues affect the performance of the Web server. The Debug Diagnostics tool is part of the IIS Diagnostics Toolkit. For more information about the IIS Diagnostics Toolkit, visit the following Microsoft Web site: http://www.microsoft.com/windowsserver2003/iis/diagnostictools/default.mspx
(http://www.microsoft.com/windowsserver2003/iis/diagnostictools/default.mspx)
To use the Debug Diagnostics tool to troubleshoot these issues, follow these steps:
| Article Translations
|
Back to the top
