
The Debug Diagnostics tool is part of the IIS Diagnostics Toolkit. You can use the Debug Diagnostics tool to determine whether these issues affect the performance of the Web server. Note We recommend that you thoroughly test any Web application that you modify to use COM objects before you deploy the Web application in a production environment. Decreased memory usage for the ASP files and for the Web application.The use of COM objects instead of the include files has many benefits. Note You must modify the main ASP files to use the COM object instead of the include files. Therefore, you can increase the default ASP template cache size to 1000 templates, and the ASP template cache is only 150 MB. 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.
#Inetinfo exe cpu usage code
This code can be called when the functionality is needed.
If you consolidate the functionality that is provided by the include files into a COM object, a single instance of the code is required. When files are moved in to and out of the ASP template cache to service incoming requests, the ASP template cache becomes fragmented and increases to 400 MB. In this scenario, the ASP template cache is approximately 200 megabytes (MB) before any fragmentation occurs.
Each include file is approximately 50 KB. Every ASP file uses five include files and stores a copy of each include file in the ASP template cache. By default, the ASP template cache stores the maximum of 500 templates. Each ASP file is approximately 150 kilobytes (KB). A Web site hosts 1000 unique ASP files. 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.įor example, consider the following scenario: If the Web application needs the functionality that is provided by multiple include files, you can consolidate the functionality into a COM object. 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. The number of include files also increases significantly. 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. You can configure this setting in the AspScriptFileCacheSize property in the Metabase.xml file. Note By default, the ASP template cache stores up to 500 templates in IIS 6.0. Additionally, if the CommonFunctions.asp file has include files, two copies of those files are cached in memory. Therefore, two copies of the CommonFunctions.asp file are cached in memory. 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. If two ASP files have the same include file, two copies of the same include file may be in the cache. The ASP files are cached as templates that consist of the main ASP file and every include file.
These issues occur because of the way in which the ASP files are cached.