Configuring ASP Script Engine Caching

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1

ASP code is compiled and executed by Microsoft® Visual Basic® Scripting Edition (VBScript) by default. To improve performance and scalability of ASP code, ASP creates script engines. ASP script engines contain the object and marshalling data that VBScript.dll needs to execute the request. Each entry in the ASP script file cache can point to one or more entries in the ASP script engine cache.

To change the settings for caching ASP script engines

  1. In IIS Manager, right-click the Web Sites folder, and then click Properties.

  2. Click the Home Directory tab.

  3. In the Application Settings area, click Configuration, and then click the Cache Options tab.

    Note

    If the Configuration button is not active, the directory or starting point does not contain an isolated application. You can create a new application by clicking Create.

  4. Set the value for Number of script engines cached.

To programmatically change the maximum number of script engines ASP pages will keep cached in memory, use the AspScriptEngineCacheMax Metabase Property.