home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 139 / dpcs0999.iso / Web / CFserver / data1.cab / Administrator / server / index.cfm (.txt) < prev    next >
Encoding:
ColdFusion Encrypted Template  |  1999-04-12  |  13.8 KB  |  370 lines

  1. <HTML>
  2. <HEAD>
  3.     <TITLE>ColdFusion Administrator - Server Settings</TITLE>
  4.     <META Name="Author" Content="Copyright 1997 Allaire Corp. All rights reserved.">
  5.     <META Name="Version" Content="$Revision: 78 $ $Modtime: 3/05/99 3:26p $">
  6.  
  7. </HEAD>
  8. <!--- General page formatting is controled by this template --->
  9. <cfinclude template="../formatting/header.cfm">
  10.  
  11.  
  12. <!--- Initialization/declarations --->
  13. <CFSET Branch="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\Server">
  14.  
  15. <!--- Make sure the main registry key exists --->
  16. <CFNewInternalRegistry ACTION=SET    ENTRY="Server" BRANCH ="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion" TYPE="KEY">
  17.  
  18. <!--- Update settings? --->
  19. <CFIF ParameterExists( FORM.Apply )>
  20.  
  21.     <!--- Validation of form fields. --->
  22.     <CFIF isNumeric(RequestLimit) IS "NO" OR RequestLimit LT 1>
  23.         <CFSET Error_Message = "You need to enter a valid Simultaneous Requests Limit ( greater than 0) in order to proceed.">
  24.         <CFINCLUDE TEMPLATE="../include/errormessage.cfm">
  25.         <CFABORT>
  26.     <CFELSEIF isNumeric(Timeout) IS "NO" OR Timeout LT 0>
  27.         <CFSET Error_Message = "You need to enter a valid Timeout value (0 to 1000000) in order to proceed.">
  28.         <CFINCLUDE TEMPLATE="../include/errormessage.cfm">
  29.         <CFABORT>
  30.     <CFELSEIF isNumeric(RestartThreshold) IS "NO" OR RestartThreshold LT 0>
  31.         <CFSET Error_Message = "You need to enter a valid restart threshold value (0 to 1000) in order to proceed.">
  32.         <CFINCLUDE TEMPLATE="../include/errormessage.cfm">
  33.         <CFABORT>
  34.     <CFELSEIF isNumeric(TemplateCacheSize) IS "NO" OR TemplateCacheSize LT 0>
  35.         <CFSET Error_Message = "You need to enter a valid Template Cache Size in order to proceed.">
  36.         <CFINCLUDE TEMPLATE="../include/errormessage.cfm">
  37.         <CFABORT>
  38.     <CFELSEIF isNumeric(LimitDBInactiveTime) IS "NO" OR LimitDBInactiveTime LT 0>
  39.         <CFSET Error_Message = "You need to enter a valid Database Inactive Cache Time in order to proceed.">
  40.         <CFINCLUDE TEMPLATE="../include/errormessage.cfm">
  41.         <CFABORT>        
  42.     <CFELSEIF isNumeric(MaxCachedQueries) IS "NO" OR LimitDBInactiveTime LT 0>
  43.         <CFSET Error_Message = "You need to enter a valid Maximum Number of Cached Queries in order to proceed.">
  44.         <CFINCLUDE TEMPLATE="../include/errormessage.cfm">
  45.         <CFABORT>        
  46.     </CFIF>
  47.  
  48.     <CFIF ParameterExists( FORM.TimeoutCheckbox )>
  49.         <CFNewInternalRegistry ACTION=SET Branch="#Branch#" 
  50.             Entry="LimitTime" 
  51.             Type="STRING" 
  52.             Value="1">
  53.     <CFELSE>
  54.         <CFNewInternalRegistry ACTION=SET Branch="#Branch#" 
  55.             Entry="LimitTime" 
  56.             Type="STRING" 
  57.             Value="0">
  58.     </CFIF>
  59.  
  60.     <CFIF ParameterExists( FORM.KillHungCheckbox )>
  61.         <CFNewInternalRegistry ACTION=SET Branch="#Branch#" 
  62.             Entry="KillHungThreads" 
  63.             Type="STRING" 
  64.             Value="1">
  65.     <CFELSE>
  66.         <CFNewInternalRegistry ACTION=SET Branch="#Branch#" 
  67.             Entry="KillHungThreads" 
  68.             Type="STRING" 
  69.             Value="0">
  70.     </CFIF>
  71.  
  72.     <CFIF ParameterExists( FORM.EnforceStrictAttributeValidationCheckBox )>
  73.         <CFNewInternalRegistry ACTION=SET Branch="#Branch#" 
  74.             Entry="EnforceStrictAttributeValidation" 
  75.             Type="STRING" 
  76.             Value="1">
  77.     <CFELSE>
  78.         <CFNewInternalRegistry ACTION=SET Branch="#Branch#" 
  79.             Entry="EnforceStrictAttributeValidation" 
  80.             Type="STRING" 
  81.             Value="0">
  82.     </CFIF>
  83.  
  84.     <CFIF ParameterExists( FORM.UseFastDateCheckBox )>
  85.         <CFNewInternalRegistry ACTION=SET Branch="#Branch#" 
  86.             Entry="UseFastDate" 
  87.             Type="STRING" 
  88.             Value="1">
  89.     <CFELSE>
  90.         <CFNewInternalRegistry ACTION=SET Branch="#Branch#" 
  91.             Entry="UseFastDate" 
  92.             Type="STRING" 
  93.             Value="0">
  94.     </CFIF>
  95.  
  96.     <CFNewInternalRegistry ACTION=SET Branch="#Branch#" 
  97.         Entry="MaxRequests" 
  98.         Type="STRING" 
  99.         Value="#FORM.RequestLimit#">
  100.     <CFNewInternalRegistry ACTION=SET Branch="#Branch#" 
  101.         Entry="MaxSeconds" 
  102.         Type="STRING" 
  103.         Value="#FORM.Timeout#">
  104.     <CFNewInternalRegistry ACTION=SET Branch="#Branch#" 
  105.         Entry="RestartThreshold" 
  106.         Type="STRING" 
  107.         Value="#FORM.RestartThreshold#">
  108.     <CFNewInternalRegistry ACTION=SET Branch="#Branch#" 
  109.         Entry="TemplateCacheSize" 
  110.         Type="STRING" 
  111.         Value="#FORM.TemplateCacheSize#">
  112.     <CFIF ParameterExists( FORM.TrustMeCacheCheckBox )>
  113.         <CFNewInternalRegistry ACTION=SET Branch="#Branch#" 
  114.             Entry="AssumeTemplateCacheIsNotDirty" 
  115.             Type="STRING" 
  116.             Value="1">
  117.     <CFELSE>
  118.         <CFNewInternalRegistry ACTION=SET Branch="#Branch#" 
  119.             Entry="AssumeTemplateCacheIsNotDirty" 
  120.             Type="STRING" 
  121.             Value="0">
  122.     </CFIF>
  123.        <CFNewInternalRegistry ACTION=SET Branch="#Branch#" 
  124.         Entry="LimitDBInactiveTime" 
  125.         Type="STRING" 
  126.         Value="#FORM.LimitDBInactiveTime#">
  127.     <CFNewInternalRegistry ACTION=SET Branch="#Branch#" 
  128.         Entry="MaxCachedQueries" 
  129.         Type="STRING" 
  130.         Value="#FORM.MaxCachedQueries#">
  131.  
  132.  
  133.     <!---- Tell the engine to refresh from the registry ---->
  134.     <CFSET bSuccess = cfusion_settings_refresh()>
  135.  
  136. </CFIF>
  137.  
  138.  
  139. <!--- Get the current settings. --->
  140. <CFNewInternalRegistry ACTION=GET Branch="#Branch#" 
  141.     VARIABLE="RequestMax" 
  142.     Entry="MaxRequests" 
  143.     Type="STRING">
  144. <CFNewInternalRegistry ACTION=GET Branch="#Branch#" 
  145.     VARIABLE="IsTimeoutEnabled" 
  146.     Entry="LimitTime" 
  147.     Type="STRING">
  148. <CFNewInternalRegistry ACTION=GET Branch="#Branch#" 
  149.     VARIABLE="IsKillEnabled" 
  150.     Entry="KillHungThreads" 
  151.     Type="STRING">
  152. <CFNewInternalRegistry ACTION=GET Branch="#Branch#" 
  153.     VARIABLE="IsEnforceStrictAttributeValidationEnabled" 
  154.     Entry="EnforceStrictAttributeValidation" 
  155.     Type="STRING">
  156. <CFNewInternalRegistry ACTION=GET Branch="#Branch#" 
  157.     VARIABLE="IsFastDateEnabled" 
  158.     Entry="UseFastDate" 
  159.     Type="STRING">
  160. <CFNewInternalRegistry ACTION=GET Branch="#Branch#" 
  161.     VARIABLE="IsTrustMeCacheEnabled" 
  162.     Entry="AssumeTemplateCacheIsNotDirty" 
  163.     Type="STRING">
  164. <CFNewInternalRegistry ACTION=GET Branch="#Branch#" 
  165.     VARIABLE="Timeout" 
  166.     Entry="MaxSeconds" 
  167.     Type="STRING">
  168. <CFNewInternalRegistry ACTION=GET Branch="#Branch#" 
  169.     VARIABLE="RestartThreshold" 
  170.     Entry="RestartThreshold" 
  171.     Type="STRING">
  172. <CFNewInternalRegistry ACTION=GET Branch="#Branch#" 
  173.     VARIABLE="TemplateCacheSize" 
  174.     Entry="TemplateCacheSize" 
  175.     Type="STRING">
  176. <CFNewInternalRegistry ACTION=GET Branch="#Branch#" 
  177.     VARIABLE="LimitDBInactiveTime" 
  178.     Entry="LimitDBInactiveTime" 
  179.     Type="STRING">
  180. <CFNewInternalRegistry ACTION=GET Branch="#Branch#" 
  181.     VARIABLE="MaxCachedQueries" 
  182.     Entry="MaxCachedQueries" 
  183.     Type="STRING">
  184.         
  185. <!--- Massage the input parameters. --->
  186. <CFPARAM Name="IsTimeoutEnabled" Default="1">
  187. <CFPARAM Name="IsKillEnabled" Default="1">
  188. <CFPARAM Name="IsEnforceStrictAttributeValidationEnabled" Default="1">
  189. <CFPARAM Name="IsTrustMeCacheEnabled" Default="0">
  190. <CFPARAM Name="IsFastDateEnabled" Default="0">
  191. <CFPARAM Name="Timeout" Default="30">
  192. <CFPARAM Name="RestartThreshold" Default="10">
  193. <CFPARAM Name="AreRequestsLimited" Default="0">
  194. <CFPARAM Name="RequestMax" Default="15">
  195. <CFPARAM Name="TemplateCacheSize" Default="1024">
  196. <CFPARAM Name="LimitDBInactiveTime" Default="60">
  197. <CFPARAM Name="MaxCachedQueries" Default="100">
  198.  
  199.  
  200.  
  201. <!--- Display the values in the page --->
  202. <CFOUTPUT>
  203.  
  204. <TABLE Border=0 cellpadding cellspacing=0>
  205. <tr><td><FONT SIZE="#Evaluate(2 + FONTSIZE)#" FACE="#FONTFACE#"><B>Server Settings</B></FONT></td></tr>
  206.     <TR>
  207.         <TD>
  208.             <FORM Name="ServerForm" Action="index.cfm" Method="POST">
  209.                 <BR>
  210.                 
  211.                 <!-- Pool size -->
  212.                 <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">
  213.                     <B>Limit simultaneous requests to</B> 
  214.                     <INPUT Name="RequestLimit" Type="TEXT" Value="#RequestMax#" Size=3 MaxLength=3 onFocus="select()">
  215.                     <BR>
  216.                     Limiting the number of simultaneously processed requests increases overall system performance. 
  217.                     Requests beyond the limit are queued. 
  218.                     The ColdFusion Application Server must be restarted for this setting to go into effect. 
  219.                 </FONT>
  220.                 <BR>
  221.                 <BR>
  222.  
  223.                 <!-- Timeout -->
  224.                 <CFIF IsTimeoutEnabled IS 1>
  225.                     <INPUT Name="TimeoutCheckbox" Type="CHECKBOX" CHECKED>
  226.                 <CFELSE>
  227.                     <INPUT Name="TimeoutCheckbox" Type="CHECKBOX">
  228.                 </CFIF>
  229.                 <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">
  230.                     <B>Timeout requests after</B> 
  231.                     <INPUT Name="Timeout" Type="TEXT" Value="#Timeout#" Size=3 MaxLength=10 onFocus="select()"> 
  232.                     <B>seconds</B>
  233.                     <BR>
  234.                     Requests that take longer than the timeout will be terminated. 
  235.                     This prevents unusually long requests from tying up server resources 
  236.                     and negatively impacting the performance of other requests.
  237.                 </FONT>
  238.                 <BR>
  239.                 <BR>
  240.  
  241.                 <!-- Restart -->
  242.                 <CFIF IsKillEnabled IS 1>
  243.                     <INPUT Name="KillHungCheckbox" Type="CHECKBOX" CHECKED>
  244.                 <CFELSE>
  245.                     <INPUT Name="KillHungCheckbox" Type="CHECKBOX">
  246.                 </CFIF>
  247.                 <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">
  248.                     <B>Restart at</B> 
  249.                     <INPUT Name="RestartThreshold" Type="TEXT" Value="#RestartThreshold#" Size=3 MaxLength=4> 
  250.                     <B>unresponsive requests</B>
  251.                     <BR>
  252.                     By enabling this option the engine will track requests that execute component 
  253.                     code but fail to return in a timely fashion (e.g., an ODBC driver, a third-party CFX, etc.). 
  254.                     The service is restarted when the specified number of request threads do 
  255.                     not respond in the allotted time. 
  256.                     
  257.                     The timeout is determined by the request timeout setting, above.
  258.                     The restart threshold will not exceed the simultaneous request limit, above.
  259.                 </FONT>
  260.                 <BR>
  261.                 <BR>
  262.  
  263.                 <!-- EnforceStrictAttributeValidation -->
  264.                 <CFIF IsEnforceStrictAttributeValidationEnabled IS 1>
  265.                     <INPUT Name="EnforceStrictAttributeValidationCheckBox" Type="CHECKBOX" CHECKED>
  266.                 <CFELSE>
  267.                     <INPUT Name="EnforceStrictAttributeValidationCheckBox" Type="CHECKBOX">
  268.                 </CFIF>
  269.                 <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">
  270.                     <B>Enforce Strict Attribute Validation</B>
  271.                     <BR>
  272.                     When checked, strict attribute validation rules will be used. Extraneous attributes
  273.                     will not be allowed for any tags in CFML. When not checked, irrelevant attributes 
  274.                     may be passed to CFML tags. Strict attribute validation improves template execution
  275.                     time and allows for the prevention of many CFML coding errors.
  276.                 </FONT>
  277.                 <BR>
  278.                 <BR>
  279.  
  280.                 <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">
  281.                     <B>Template Cache Size:</B> 
  282.                     <INPUT Name="TemplateCacheSize" Type="TEXT" Value="#TemplateCacheSize#" Size=6 MaxLength=10 onFocus="select()"> 
  283.                     <B>kilobytes</B>
  284.                     <BR>
  285.                     Limits the amount of memory used for template caching. If the cache is set to a small
  286.                     value ColdFusion server may need to re-process your templates. If your server has 
  287.                     sufficient amount of memory you can achieve optimum performance by setting this value
  288.                     to the total size of all of your ColdFusion templates. Setting cache to a high value 
  289.                     does not automatically reduce available memory as ColdFusion caches templates
  290.                     incrementally.
  291.                 </FONT>
  292.                 <BR>
  293.                 <BR>
  294.                 
  295.                 <!-- EnforceStrictAttributeValidation -->
  296.                 <CFIF IsTrustMeCacheEnabled IS 1>
  297.                     <INPUT Name="TrustMeCacheCheckBox" Type="CHECKBOX" CHECKED>
  298.                 <CFELSE>
  299.                     <INPUT Name="TrustMeCacheCheckBox" Type="CHECKBOX">
  300.                 </CFIF>
  301.                 <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">
  302.                     <B>Trusted Cache</B>
  303.                     <BR>
  304.                     When checked, any requested files found to currently reside in the template cache, will not be inspected 
  305.                     for potential updates. For sites where templates are not updated during the life of the server, this  
  306.                     minimizes file system overhead.               
  307.                 </FONT>
  308.                 <BR>
  309.                 <BR>
  310.  
  311.                 <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">
  312.                     <B>Limit database connection inactive time to</B> 
  313.                     <INPUT Name="LimitDBInactiveTime" Type="TEXT" Value="#LimitDBInactiveTime#" Size=6 MaxLength=4 onFocus="select()"> 
  314.                     <B>minutes</B>
  315.                     <BR>
  316.                     Limits the maximum amount of time that a cached database connection is inactive
  317.                     before it is disconnected.  Enter '0' if you want inactive connections to be
  318.                     maintained as long as the the ColdFusion server is executing. A database connection
  319.                     is cached when the maintain database connections attribute is checked for a data source. 
  320.                 </FONT>
  321.                 <BR>
  322.                 <BR>
  323.  
  324.                 <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">
  325.                     <B>Limit the maximum number of cached queries on the server to</B> 
  326.                     <INPUT Name="MaxCachedQueries" Type="TEXT" Value="#MaxCachedQueries#" Size=6 MaxLength=4 onFocus="select()"> 
  327.                     <B>queries</B>
  328.                     <BR>
  329.                     Limits the maximum number of cached queries that the server will maintain. Cached queries
  330.                     allow for retrieval of result sets from memory rather than through a database transaction.
  331.                     Since the queries reside in memory, and query result set sizes differ, there must be some 
  332.                     user imposed limit to the number of queries that are cached. The maximum number of cached
  333.                     queries allowed at any given time is 100. When this value is exceeded, the oldest query 
  334.                     is dropped from the cache and is replaced with the specified query.
  335.                 </FONT>
  336.                 <BR>
  337.                 <BR>
  338.                 
  339.                 <!-- UseFastDate -->
  340.                 <CFIF Server.OS.Name IS "UNIX">
  341.                   <CFIF IsFastDateEnabled IS 1>
  342.                     <INPUT Name="UseFastDateCheckBox" Type="CHECKBOX" CHECKED>
  343.                   <CFELSE>
  344.                     <INPUT Name="UseFastDateCheckBox" Type="CHECKBOX">
  345.                   </CFIF>
  346.                   <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">
  347.                     <B>Enable Fast Date/Time parsing</B>
  348.                     <BR>
  349.                     When checked, ColdFusion will use a simpler, faster Date/Time parsing routine when evaluating expressions.
  350.                     This will improve performance, but may affect backward compatibility.  This does not affect the ParseDateTime function.
  351.                   </FONT>
  352.                   <BR>
  353.                   <BR>
  354.                 </CFIF>
  355.             </CFOUTPUT>
  356.  
  357.                 <!-- Form buttons -->
  358.                 <CFINCLUDE TEMPLATE="..\include\stdformbuttons.cfm">
  359.  
  360.             </FORM>
  361.             
  362.         </TD>
  363.     </TR>
  364. </TABLE>
  365.  
  366. <!--- This closes the page formatting template --->
  367. <CFINCLUDE TEMPLATE="../formatting/footer.cfm">
  368. </BODY>
  369. </HTML>
  370.