|
|||||||
|
|
|
|||||
|
|
|||||||
The configuration registry stores values that define the working environment for Windows operating systems and any services installed on the computer running Windows. Usually, to change these values, you use graphical tools, such as Control Panel, Windows Setup, or Internet Service Manager. Windows operating systems also include a utility, the Registry Editor (regedit.exe), which you can use to inspect and modify the configuration registry directly.
Before you modify the registry, it is strongly recommended that you read Part IV of Windows NT Resource Guide (found in the Microsoft Windows NT Resource Kit). It describes in detail how to use and change parameters in the registry.
Important
Using the Registry Editor incorrectly can cause serious problems, including corruption that may make it necessary to reinstall Windows or Active Server Pages. Using the Registry Editor to edit entries in the registry is equivalent to editing raw sectors on a hard disk. If you make mistakes, your computers configuration could be damaged. You should edit registry entries only for settings that you cannot adjust through the user interface, and be very careful whenever you edit the registry directly.Registry Path:
HKEY_LOCAL_MACHINE\SYSTEM
\CurrentControlSet
\Services
\W3SVC
\ASP
\Parameters
The following tables provide detailed information about each of the registry entries that are installed by default with Active Server Pages. Each table consists of three rows. The top cell contains a value entry and the class or type of the value entry. The middle cell contains the range of the value and the default value of the entry. The bottom cell contains an explanation of the registry entry as it affects the execution and performance of Active Server Pages.
| AllowSessionState REG_DWORD |
| Range: 0,1 Default: 1 |
| This flag controls whether Active Server Pages can make session state in applications. If set to 1, ASP scripts can allow for session state for all users who access an .asp file in a Web site. If set to 0, session state is not allowed; the ASPSessionID cookie will not be sent to clients that access the Web site, and any attempts to store anything in the session or to use Session_OnStart or Session_OnEnd will generate an error. If this setting is changed, the Web server must be stopped and restarted for the change to take effect. |
| BufferingOn REG_DWORD |
| Range: 0,1 Default: 0 |
| This flag controls whether Active Server Pages buffers output to a browser. If it is on (set to 1) then all output is collected before any is sent to the browser. This allows for HTTP headers to be set from anywhere within a script. The Response.Buffer method can be used to override this default setting. Changing this setting does not require that The Web server be stopped and restarted for the change to take effect. |
| DefaultScriptLanguage REG_SZ |
| Range: String Default: VBScript |
| This value indicates the script language that is used as the primary scripting language for all Active Server Pages applications. The primary scripting language can be used inside of Active Server Pages scripting delimiters (<% and %>). The default value is VBScript. The <%@ LANGUAGE = ScriptingLanguage %> command can be used to override this default setting. If this setting is changed, The Web server must be stopped and restarted for the change to take effect. |
| EnableParentPaths REG_DWORD |
| Range: 0,1 Default: 1 |
| This flag controls whether Active Server Pages can allow paths relative to the current directory (that is, moving back up the directory hierarchy with .. operations). The default setting is True. This parameter setting constitutes a minor security risk, because an include path could access a file outside the servers virtual root space. Web site administrators who want to restrict such access can set this value to 0 (False). If this setting is changed, The Web server must be stopped and restarted for the change to take effect. |
| LogErrorRequests REG_DWORD |
| Range: 0,1 Default: 1 |
| This flag controls whether the Web server writes unsuccessful client requests to the Windows NT event log file. The value 1 turns error logging on, and 0 turns it off. Changing this setting does not require that The Web server be stopped and restarted for the change to take effect. |
| MemFreeFactor REG_DWORD |
| Range: 50 - 150 Default: 50 |
| This value indicates the maximum length of the free memory list as a percentage of the used memory list. If this setting is changed, The Web server must be stopped and restarted for the change to take effect. |
| MinUsedBlocks REG_DWORD |
| Range: 5 - 20 Default: 10 |
| This value indicates the minimum length of the used memory list before elements can be freed. If this setting is changed, The Web server must be stopped and restarted for the change to take effect. |
| NumInitialThreads REG_DWORD |
| Range: 1 - 10 Default: 2 |
| This value indicates the number of worker threads that Active Server Pages creates when it is started. If this value exceeds the maximum number of threads possible as indicated by ProcessorThreadMax, then Active Server Pages will honor ProcessorThreadMax over NuminitialThreads. If this value is changed, The Web server must be stopped and restarted for the change to take effect. |
| ProcessorThreadMax REG_DWORD |
| Range: 1 - 0x000000C8 Default: 10 |
| This value specifies the maximum number of worker threads to create per processor. Generally it is not advisable to create more than 20 threads per processor. If this value is changed, The Web server must be stopped and restarted for the change to take effect. |
| RequestQueueMax REG_DWORD |
| Range: 1 - 0xFFFFFFFF Default: 500 |
| This value specifies the maximum number of .asp file requests to maintain in the request queue available for each thread. When the limit is reached, clients are sent the value from the registry value ServerTooBusy. If this value is changed, The Web server must be stopped and restarted for the change to take effect. |
| ScriptEngineCacheMax |
| Range: 0 - 0xFFFFFFFF Default: 30 |
| This value indicates the maximum number of ActiveX language engines that Active Server Pages will keep cached in memory. If this value is changed, The Web server must be stopped and restarted for the change to take effect. |
| ScriptErrorMessage REG_SZ |
| Range: String Default: An error occurred on the server when processing the URL. Please contact the system administrator. |
| This message appears on a browser if ScriptErrorsSentToBrowser is set to False. Changing this setting does not require that The Web server be stopped and restarted for the change to take effect. |
| ScriptErrorsSentToBrowser REG_DWORD |
| Range: 0,1 Default: 1 |
| This flag controls whether the Web server writes debugging specifics (file name, error and line numbers, description) to the browser in addition to the log. Changing this setting does not require that The Web server be stopped and restarted for the change to take effect. |
| ScriptFileCacheSize REG_DWORD |
| Range: 0 - 0xFFFFFFFF Default: -1 |
| This value specifies the amount of memory in bytes to allocate for the caching of precompiled script files, which improves the performance of Active Server Pages. A special value of 0 indicates that no script files will be cached. A special value of -1 (default) indicates that all script files requested will be cached. Performance may be low if caching is not used. Sites with heavy file traffic can increase this size if there is sufficient RAM on the system. If this value is changed, The Web server must be stopped and restarted for the change to take effect. |
| ScriptFileCacheTTL REG_DWORD |
| Range: 0 - 0x7FFFFFFF, 0xFFFFFFFF Default: 300 seconds |
| This value specifies the amount of time that script files will remain in the Memory Cache before being phased out if there have been no references to those scripts. If the number of data files is limited or clients only access a small portion of files, increasing this value could be beneficial. A value of 0xFFFFFFFF means files will be cached indefinitely. If this value is changed, The Web server must be stopped and restarted for the change to take effect. |
| ScriptTimeout REG_DWORD |
| Range: 0 - 0xFFFFFFFF Default: 90 seconds |
| This value indicates the length of time Active Server Pages will allow a script to run to completion. If the script fails to complete within this time period, the server terminates the script and writes an event to the event log. This can be overridden in a script by using the Server.ScriptTimeout method call. A special value of -1 allows scripts to run for an indefinite amount of time. Changing this setting does not require that The Web server be stopped and restarted for the change to take effect. |
| SessionTimeout REG_DWORD |
| Range: 1 - 0xFFFFFFFF Default: 20 minutes |
| This value specifies the default amount of time a Session object should be maintained after the last request associated with the object is made. This can be overridden in a script using the Session.Timeout method call. Changing this setting does not require that The Web server be stopped and restarted for the change to take effect. |
| StartConnectionPool REG_DWORD |
| Range: 0,1 Default: 1 |
| This flag controls whether ODBC connection pooling is turned on (default) or off. If this setting is changed, The Web server must be stopped and restarted for the change to take effect. |
| ThreadCreationThreshold REG_DWORD |
| Range: 1 - 0xFFFFFFFF Default: 5 |
| This value indicates the number of requests that can be maintained in the common queue (that is, requests that do not need to be executed on a specific thread) for Active Server Pages. If requests in the common queue exceed this number, a new thread is created in the thread pool (that is, the total number of threads that ASP creates to service incoming requests), but only if the number of threads in the thread pool is less than the configured maximum of ProcessorThreadMax. If this value is changed, The Web server must be stopped and restarted for the change to take effect. |