BUG: Cannot Modify the Maximum Number of ASP Files Cached in Memory with the IIS MMC (308182)



The information in this article applies to:

  • Microsoft Internet Information Services version 5.1

This article was previously published under Q308182

SYMPTOMS

You cannot set the maximum number of Active Server Pages (ASP) files that Internet Information Services (IIS) caches by using the Internet Service Manager Microsoft Management Console (MMC).

RESOLUTION

IMPORTANT: This article contains information about editing the metabase. Before you edit the metabase, verify that you have a backup copy that you can restore if a problem occurs. For information about how to do this, see the "Configuration Backup/Restore" Help topic in Microsoft Management Console (MMC).

To change the number of ASP script files that IIS caches, you must modify the metabase manually. To do this, follow these steps:
  1. Open a command prompt.
  2. Type cd inetpub\adminscripts.
  3. Type adsutil set w3svc/AspScriptFileCacheSize "1-999999".

STATUS

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

MORE INFORMATION

AspScriptFileCacheSize specifies the number of precompiled script files to cache. If AspScriptFileCacheSize is set to 0, no script files are cached. If AspScriptFileCacheSize is set to -1, all requested script files are cached. You can use this property to tune performance, depending on the amount of available memory and the amount of script file traffic. The default value of AspScriptFileCacheSize at installation is 250.

Steps to Reproduce Behavior

  1. Open the IIS MMC.
  2. Right-click Web Sites, then click Properties.
  3. On the Home Directory tab, click Configuration.
  4. On the Cache Options tab, select Cache all requested ASP files.
  5. Type a new value for ASP files cached in memory and click OK.
  6. Click the Cache Options tab. Note that the value in the ASP files cached in memory text box is 999999.
The new value that you typed for ASP files cached in memory sets the actual value of the AspScriptFileCacheSize metabase entry to -1. When AspScriptFileCacheSize is set to -1, all ASP script files are cached.

Modification Type:MajorLast Reviewed:12/28/2001
Keywords:kbbug KB308182