K2 Runtime web.config File Performance Settings

The following Performance items are available in the K2 runtime web.config file typically found at: C:\Program Files\K2\K2 smartforms Runtime\Web.config. Default settings have been applied and tested for optimum performance.

Node Change permitted? Description Value

<add key="Forms.Compression.IsEnabled" value="true" />

<add key="Forms.Compression.PathPatterns" value=".ashx" />

<add key="Forms.Compression.ExcludedPatterns" value="File.ashx" />

No Additional Compression Setting. For this setting to work optimally the Dynamic and Static Compression services must be installed on the relevant IIS servers.  This is done by checking/adding the Role Service under the Server Manager Roles Tab N/A

<add key="SmartObject.RuntimeListViewRowCount" value="false" />

Yes SmartObject Execution Setting. Change the value to true if the Row Count should be enabled on List Views. If this setting is enabled, it will have an impact on performance. When using false as the value the last page button is removed and total page count is removed from the User Interface One of the following:
  • true
  • false

<add key="Forms.Performance.Counters.Enabled" value="false" />

Yes Performance Counters - Requires that the Application Pool identity is a local Administrator One of the following:
  • true
  • false

<!--<add key="Forms.UseConnectionPerRequest" value="true" />-->

No Creates a single connection to the K2 HostServer and shares this connection for Ajax calls, Page rendering etc  N/A

<!--<add key="Forms.UseConnectionPooling" value="true"/>-->

* Yes Allows for re-use of connections to the base API for multiple requests One of the following:
  • true
  • false

<!--<add key="Forms.MinConnectionPoolSize" value="0"/>-->

* Yes Default is zero meaning when the Application Pool is initialized, the pool size will grow as the load grows N/A

<!--<add key="Forms.MaxConnectionPoolSize" value="0"/>-->

* Yes Default is zero meaning when the Application Pool is initialized, the pool size will grow as the load grows. If this setting is changed, it is advised to keep it as high as possible for example 1000. The recommended setting is zero N/A

<add key="Forms.PostRenderCombining.Enabled" value="true" />

<add key="Forms.PostRenderCombining.PathPatterns" value="WebResource.axd;ScriptResource.axd;
JsonResources.axd;ResourceJson.ashx;/Themes/;/Rules/;/Script/" />

<add key="Forms.PostRenderCombining.ExcludedPatterns" value=".min." />

<!--<add key="Forms.PostRenderCombining.HandlerPath" value="{0}/CombinedResource.ashx?d={1}&amp;c={2}"/>-->

<!--<add key="Forms.PostRenderCombining.PreRequestCombinedUrls" value="false"/>-->

<!-- Web cache peers - list of urls that should receive broadcasted cache updates -->

Do not change Post render combining settings - Combined resource of CSS and script files after Form has been rendered, delivered as one file to the browser. This setting can be disabled by changing the value of the first tag to false for debugging purposes, but the rest of the settings should always stay as it is. This setting should be disabled when the "UseBundledFiles" setting is set to false.  N/A

<add key="Forms.PostRenderCombining.IgnoreLoadErrors" value="false"/>

* Yes Post render combining settings - When set to false (the default) and any resources being loaded for combining fail, a 500 (Internal Server Error) response code is returned to the browser along with the combined resource response resulting in none of the successful combined resources to be available to the browser. When set to true any errors that occurred when loading resources for combining will be ignored, and the final response that is sent to the browser will have a 200 (OK) response code resulting in resources that didn't fail to load still being available to the browser. One of the following:
  • true
  • false

<!--<add key="Forms.PostRenderCombining.RelativeRootOverride" value="[RelativeRootURL, e.g. "http://cdn.host.com/"]"/>-->

Yes RelativeRootOverride - used when the server cannot access the individual js and CSS resources it needs to build the combined resource (PostRenderCombining), using the external root URL (such as http://www.k2.com), but rather must use an internal root URL(such as http://internal.k2.com). When the combined resource's functionality does not have access to the resources using the external URL, this may result in the 500 errors on CombinedResources.ashx requests.   URLs such as http://internal.k2.com
* You can change these values but it's not recommended