The following table describes Active Server Pages (ASP) performance optimization parameters and their settings.
Parameter | Settings | Impact |
---|---|---|
Set ProcessorThreadMax to a low value. | Using Regedt32, navigate to HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ W3SVC\ ASP\ Parameters. Add the value ProcessorThreadMax if it's not already there. Decrease the value and monitor performance. If performance decreases, revert to the previous value. |
This changes the number of threads per CPU that IIS allocates for Microsoft Transaction Server (MTS). For well-written scripts, low numbers are better. This lowers the amount of contention. |
Set the AspScriptEngineCacheMax property to ProcessorThreadMax multiplied by the number of processors in the system.
Default: 30 |
Configuration information related to Web sites, directories, and pages is stored in the IIS configuration data store (metabase).
IIS 4.0 includes a number of scripts that let you change settings in the metabase. From the SystemRoot, navigate to /System32/ Type adsutil.vbs. Set /w3svc/ |
This allows each ASP thread to cache a script engine, which results in processing ASP pages more efficiently. |
Enable buffering for ASP applications. | Using Microsoft Management Console, navigate to the Web sites or ASP application name spaces under the IIS snap-in.
Right-click the site or application and click Properties. Click the Home/Virtual Directory tab. Click the Configuration button in the Application Settings section. Click the App Options tab. Select the Enable Buffering option. Click OK, then click OK again. |
Setting this option buffers ASP output to the browser. This allows the server to deliver the entire response to the client, as opposed to delivering the content as the server generates it. |
Minimize the Session Timeout value. | Using Microsoft Management Console, navigate to the Web sites (virtual servers) under the IIS snap-in.
Right-click Default Web Site and/or any other Web site(s) where your content exists, and click Properties. Click the Home Directory tab. Click the Configuration button in the Application Settings section. Click the App Options tab. Set Session Timeout to the minimum amount of time you need to maintain a user's session state. |
Maintaining a session using the Session object in ASP requires system resources. Imagine that there are 1,000 users connected at any given time. This means that the server needs to allocate resources to maintain the session state for each user. The longer the server needs to maintain the session state, the longer the resources are tied up. Therefore, minimizing the Session Timeout value optimizes the server's resources and improves performance. |