home *** CD-ROM | disk | FTP | other *** search
- <HTML>
- <HEAD>
- <TITLE>ColdFusion Administrator - Server Settings</TITLE>
- <META Name="Author" Content="Copyright 1997 Allaire Corp. All rights reserved.">
- <META Name="Version" Content="$Revision: 78 $ $Modtime: 3/05/99 3:26p $">
-
- </HEAD>
- <!--- General page formatting is controled by this template --->
- <cfinclude template="../formatting/header.cfm">
-
-
- <!--- Initialization/declarations --->
- <CFSET Branch="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\Server">
-
- <!--- Make sure the main registry key exists --->
- <CFNewInternalRegistry ACTION=SET ENTRY="Server" BRANCH ="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion" TYPE="KEY">
-
- <!--- Update settings? --->
- <CFIF ParameterExists( FORM.Apply )>
-
- <!--- Validation of form fields. --->
- <CFIF isNumeric(RequestLimit) IS "NO" OR RequestLimit LT 1>
- <CFSET Error_Message = "You need to enter a valid Simultaneous Requests Limit ( greater than 0) in order to proceed.">
- <CFINCLUDE TEMPLATE="../include/errormessage.cfm">
- <CFABORT>
- <CFELSEIF isNumeric(Timeout) IS "NO" OR Timeout LT 0>
- <CFSET Error_Message = "You need to enter a valid Timeout value (0 to 1000000) in order to proceed.">
- <CFINCLUDE TEMPLATE="../include/errormessage.cfm">
- <CFABORT>
- <CFELSEIF isNumeric(RestartThreshold) IS "NO" OR RestartThreshold LT 0>
- <CFSET Error_Message = "You need to enter a valid restart threshold value (0 to 1000) in order to proceed.">
- <CFINCLUDE TEMPLATE="../include/errormessage.cfm">
- <CFABORT>
- <CFELSEIF isNumeric(TemplateCacheSize) IS "NO" OR TemplateCacheSize LT 0>
- <CFSET Error_Message = "You need to enter a valid Template Cache Size in order to proceed.">
- <CFINCLUDE TEMPLATE="../include/errormessage.cfm">
- <CFABORT>
- <CFELSEIF isNumeric(LimitDBInactiveTime) IS "NO" OR LimitDBInactiveTime LT 0>
- <CFSET Error_Message = "You need to enter a valid Database Inactive Cache Time in order to proceed.">
- <CFINCLUDE TEMPLATE="../include/errormessage.cfm">
- <CFABORT>
- <CFELSEIF isNumeric(MaxCachedQueries) IS "NO" OR LimitDBInactiveTime LT 0>
- <CFSET Error_Message = "You need to enter a valid Maximum Number of Cached Queries in order to proceed.">
- <CFINCLUDE TEMPLATE="../include/errormessage.cfm">
- <CFABORT>
- </CFIF>
-
- <CFIF ParameterExists( FORM.TimeoutCheckbox )>
- <CFNewInternalRegistry ACTION=SET Branch="#Branch#"
- Entry="LimitTime"
- Type="STRING"
- Value="1">
- <CFELSE>
- <CFNewInternalRegistry ACTION=SET Branch="#Branch#"
- Entry="LimitTime"
- Type="STRING"
- Value="0">
- </CFIF>
-
- <CFIF ParameterExists( FORM.KillHungCheckbox )>
- <CFNewInternalRegistry ACTION=SET Branch="#Branch#"
- Entry="KillHungThreads"
- Type="STRING"
- Value="1">
- <CFELSE>
- <CFNewInternalRegistry ACTION=SET Branch="#Branch#"
- Entry="KillHungThreads"
- Type="STRING"
- Value="0">
- </CFIF>
-
- <CFIF ParameterExists( FORM.EnforceStrictAttributeValidationCheckBox )>
- <CFNewInternalRegistry ACTION=SET Branch="#Branch#"
- Entry="EnforceStrictAttributeValidation"
- Type="STRING"
- Value="1">
- <CFELSE>
- <CFNewInternalRegistry ACTION=SET Branch="#Branch#"
- Entry="EnforceStrictAttributeValidation"
- Type="STRING"
- Value="0">
- </CFIF>
-
- <CFIF ParameterExists( FORM.UseFastDateCheckBox )>
- <CFNewInternalRegistry ACTION=SET Branch="#Branch#"
- Entry="UseFastDate"
- Type="STRING"
- Value="1">
- <CFELSE>
- <CFNewInternalRegistry ACTION=SET Branch="#Branch#"
- Entry="UseFastDate"
- Type="STRING"
- Value="0">
- </CFIF>
-
- <CFNewInternalRegistry ACTION=SET Branch="#Branch#"
- Entry="MaxRequests"
- Type="STRING"
- Value="#FORM.RequestLimit#">
- <CFNewInternalRegistry ACTION=SET Branch="#Branch#"
- Entry="MaxSeconds"
- Type="STRING"
- Value="#FORM.Timeout#">
- <CFNewInternalRegistry ACTION=SET Branch="#Branch#"
- Entry="RestartThreshold"
- Type="STRING"
- Value="#FORM.RestartThreshold#">
- <CFNewInternalRegistry ACTION=SET Branch="#Branch#"
- Entry="TemplateCacheSize"
- Type="STRING"
- Value="#FORM.TemplateCacheSize#">
- <CFIF ParameterExists( FORM.TrustMeCacheCheckBox )>
- <CFNewInternalRegistry ACTION=SET Branch="#Branch#"
- Entry="AssumeTemplateCacheIsNotDirty"
- Type="STRING"
- Value="1">
- <CFELSE>
- <CFNewInternalRegistry ACTION=SET Branch="#Branch#"
- Entry="AssumeTemplateCacheIsNotDirty"
- Type="STRING"
- Value="0">
- </CFIF>
- <CFNewInternalRegistry ACTION=SET Branch="#Branch#"
- Entry="LimitDBInactiveTime"
- Type="STRING"
- Value="#FORM.LimitDBInactiveTime#">
- <CFNewInternalRegistry ACTION=SET Branch="#Branch#"
- Entry="MaxCachedQueries"
- Type="STRING"
- Value="#FORM.MaxCachedQueries#">
-
-
- <!---- Tell the engine to refresh from the registry ---->
- <CFSET bSuccess = cfusion_settings_refresh()>
-
- </CFIF>
-
-
- <!--- Get the current settings. --->
- <CFNewInternalRegistry ACTION=GET Branch="#Branch#"
- VARIABLE="RequestMax"
- Entry="MaxRequests"
- Type="STRING">
- <CFNewInternalRegistry ACTION=GET Branch="#Branch#"
- VARIABLE="IsTimeoutEnabled"
- Entry="LimitTime"
- Type="STRING">
- <CFNewInternalRegistry ACTION=GET Branch="#Branch#"
- VARIABLE="IsKillEnabled"
- Entry="KillHungThreads"
- Type="STRING">
- <CFNewInternalRegistry ACTION=GET Branch="#Branch#"
- VARIABLE="IsEnforceStrictAttributeValidationEnabled"
- Entry="EnforceStrictAttributeValidation"
- Type="STRING">
- <CFNewInternalRegistry ACTION=GET Branch="#Branch#"
- VARIABLE="IsFastDateEnabled"
- Entry="UseFastDate"
- Type="STRING">
- <CFNewInternalRegistry ACTION=GET Branch="#Branch#"
- VARIABLE="IsTrustMeCacheEnabled"
- Entry="AssumeTemplateCacheIsNotDirty"
- Type="STRING">
- <CFNewInternalRegistry ACTION=GET Branch="#Branch#"
- VARIABLE="Timeout"
- Entry="MaxSeconds"
- Type="STRING">
- <CFNewInternalRegistry ACTION=GET Branch="#Branch#"
- VARIABLE="RestartThreshold"
- Entry="RestartThreshold"
- Type="STRING">
- <CFNewInternalRegistry ACTION=GET Branch="#Branch#"
- VARIABLE="TemplateCacheSize"
- Entry="TemplateCacheSize"
- Type="STRING">
- <CFNewInternalRegistry ACTION=GET Branch="#Branch#"
- VARIABLE="LimitDBInactiveTime"
- Entry="LimitDBInactiveTime"
- Type="STRING">
- <CFNewInternalRegistry ACTION=GET Branch="#Branch#"
- VARIABLE="MaxCachedQueries"
- Entry="MaxCachedQueries"
- Type="STRING">
-
- <!--- Massage the input parameters. --->
- <CFPARAM Name="IsTimeoutEnabled" Default="1">
- <CFPARAM Name="IsKillEnabled" Default="1">
- <CFPARAM Name="IsEnforceStrictAttributeValidationEnabled" Default="1">
- <CFPARAM Name="IsTrustMeCacheEnabled" Default="0">
- <CFPARAM Name="IsFastDateEnabled" Default="0">
- <CFPARAM Name="Timeout" Default="30">
- <CFPARAM Name="RestartThreshold" Default="10">
- <CFPARAM Name="AreRequestsLimited" Default="0">
- <CFPARAM Name="RequestMax" Default="15">
- <CFPARAM Name="TemplateCacheSize" Default="1024">
- <CFPARAM Name="LimitDBInactiveTime" Default="60">
- <CFPARAM Name="MaxCachedQueries" Default="100">
-
-
-
- <!--- Display the values in the page --->
- <CFOUTPUT>
-
- <TABLE Border=0 cellpadding cellspacing=0>
- <tr><td><FONT SIZE="#Evaluate(2 + FONTSIZE)#" FACE="#FONTFACE#"><B>Server Settings</B></FONT></td></tr>
- <TR>
- <TD>
- <FORM Name="ServerForm" Action="index.cfm" Method="POST">
- <BR>
-
- <!-- Pool size -->
- <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">
- <B>Limit simultaneous requests to</B>
- <INPUT Name="RequestLimit" Type="TEXT" Value="#RequestMax#" Size=3 MaxLength=3 onFocus="select()">
- <BR>
- Limiting the number of simultaneously processed requests increases overall system performance.
- Requests beyond the limit are queued.
- The ColdFusion Application Server must be restarted for this setting to go into effect.
- </FONT>
- <BR>
- <BR>
-
- <!-- Timeout -->
- <CFIF IsTimeoutEnabled IS 1>
- <INPUT Name="TimeoutCheckbox" Type="CHECKBOX" CHECKED>
- <CFELSE>
- <INPUT Name="TimeoutCheckbox" Type="CHECKBOX">
- </CFIF>
- <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">
- <B>Timeout requests after</B>
- <INPUT Name="Timeout" Type="TEXT" Value="#Timeout#" Size=3 MaxLength=10 onFocus="select()">
- <B>seconds</B>
- <BR>
- Requests that take longer than the timeout will be terminated.
- This prevents unusually long requests from tying up server resources
- and negatively impacting the performance of other requests.
- </FONT>
- <BR>
- <BR>
-
- <!-- Restart -->
- <CFIF IsKillEnabled IS 1>
- <INPUT Name="KillHungCheckbox" Type="CHECKBOX" CHECKED>
- <CFELSE>
- <INPUT Name="KillHungCheckbox" Type="CHECKBOX">
- </CFIF>
- <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">
- <B>Restart at</B>
- <INPUT Name="RestartThreshold" Type="TEXT" Value="#RestartThreshold#" Size=3 MaxLength=4>
- <B>unresponsive requests</B>
- <BR>
- By enabling this option the engine will track requests that execute component
- code but fail to return in a timely fashion (e.g., an ODBC driver, a third-party CFX, etc.).
- The service is restarted when the specified number of request threads do
- not respond in the allotted time.
-
- The timeout is determined by the request timeout setting, above.
- The restart threshold will not exceed the simultaneous request limit, above.
- </FONT>
- <BR>
- <BR>
-
- <!-- EnforceStrictAttributeValidation -->
- <CFIF IsEnforceStrictAttributeValidationEnabled IS 1>
- <INPUT Name="EnforceStrictAttributeValidationCheckBox" Type="CHECKBOX" CHECKED>
- <CFELSE>
- <INPUT Name="EnforceStrictAttributeValidationCheckBox" Type="CHECKBOX">
- </CFIF>
- <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">
- <B>Enforce Strict Attribute Validation</B>
- <BR>
- When checked, strict attribute validation rules will be used. Extraneous attributes
- will not be allowed for any tags in CFML. When not checked, irrelevant attributes
- may be passed to CFML tags. Strict attribute validation improves template execution
- time and allows for the prevention of many CFML coding errors.
- </FONT>
- <BR>
- <BR>
-
- <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">
- <B>Template Cache Size:</B>
- <INPUT Name="TemplateCacheSize" Type="TEXT" Value="#TemplateCacheSize#" Size=6 MaxLength=10 onFocus="select()">
- <B>kilobytes</B>
- <BR>
- Limits the amount of memory used for template caching. If the cache is set to a small
- value ColdFusion server may need to re-process your templates. If your server has
- sufficient amount of memory you can achieve optimum performance by setting this value
- to the total size of all of your ColdFusion templates. Setting cache to a high value
- does not automatically reduce available memory as ColdFusion caches templates
- incrementally.
- </FONT>
- <BR>
- <BR>
-
- <!-- EnforceStrictAttributeValidation -->
- <CFIF IsTrustMeCacheEnabled IS 1>
- <INPUT Name="TrustMeCacheCheckBox" Type="CHECKBOX" CHECKED>
- <CFELSE>
- <INPUT Name="TrustMeCacheCheckBox" Type="CHECKBOX">
- </CFIF>
- <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">
- <B>Trusted Cache</B>
- <BR>
- When checked, any requested files found to currently reside in the template cache, will not be inspected
- for potential updates. For sites where templates are not updated during the life of the server, this
- minimizes file system overhead.
- </FONT>
- <BR>
- <BR>
-
- <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">
- <B>Limit database connection inactive time to</B>
- <INPUT Name="LimitDBInactiveTime" Type="TEXT" Value="#LimitDBInactiveTime#" Size=6 MaxLength=4 onFocus="select()">
- <B>minutes</B>
- <BR>
- Limits the maximum amount of time that a cached database connection is inactive
- before it is disconnected. Enter '0' if you want inactive connections to be
- maintained as long as the the ColdFusion server is executing. A database connection
- is cached when the maintain database connections attribute is checked for a data source.
- </FONT>
- <BR>
- <BR>
-
- <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">
- <B>Limit the maximum number of cached queries on the server to</B>
- <INPUT Name="MaxCachedQueries" Type="TEXT" Value="#MaxCachedQueries#" Size=6 MaxLength=4 onFocus="select()">
- <B>queries</B>
- <BR>
- Limits the maximum number of cached queries that the server will maintain. Cached queries
- allow for retrieval of result sets from memory rather than through a database transaction.
- Since the queries reside in memory, and query result set sizes differ, there must be some
- user imposed limit to the number of queries that are cached. The maximum number of cached
- queries allowed at any given time is 100. When this value is exceeded, the oldest query
- is dropped from the cache and is replaced with the specified query.
- </FONT>
- <BR>
- <BR>
-
- <!-- UseFastDate -->
- <CFIF Server.OS.Name IS "UNIX">
- <CFIF IsFastDateEnabled IS 1>
- <INPUT Name="UseFastDateCheckBox" Type="CHECKBOX" CHECKED>
- <CFELSE>
- <INPUT Name="UseFastDateCheckBox" Type="CHECKBOX">
- </CFIF>
- <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">
- <B>Enable Fast Date/Time parsing</B>
- <BR>
- When checked, ColdFusion will use a simpler, faster Date/Time parsing routine when evaluating expressions.
- This will improve performance, but may affect backward compatibility. This does not affect the ParseDateTime function.
- </FONT>
- <BR>
- <BR>
- </CFIF>
- </CFOUTPUT>
-
- <!-- Form buttons -->
- <CFINCLUDE TEMPLATE="..\include\stdformbuttons.cfm">
-
- </FORM>
-
- </TD>
- </TR>
- </TABLE>
-
- <!--- This closes the page formatting template --->
- <CFINCLUDE TEMPLATE="../formatting/footer.cfm">
- </BODY>
- </HTML>
-