How to Manage Performance

How to Improve Performance

Manage CPU usage

To optimize the performance of the Preview generation service, manage the CPU usage by completing the following steps:

  1. Go to Web Admin Console:
    1. Click Control the Import Service on the Smart Previews Web Admin console page that appears.
  2. Manage CPU usage:
    1. Reduced: No more than 30% of resources are used.
    2. Partially Reduced: No more than 50% of resources are used. Default setting.
    3. Dedicated: All of the available resources are used. This is for dedicated Smart Previews Import Server hardware, only.
      Note: These percentages are approximations only.
  3. Click Save.

Increase Conversion Timeout Values

Increasing the conversion timeouts for the Preview generation process reduces the total number of Previews that fail with TimeOut errors.

The Smart Previews Import Server processes are linked and depend on having consistent values in the configuration files.

For example:

  • PreviewGenerator.exe: Starts instances of AptivCachePreviewGenerator.exe.
  • ImportV5.exe: Starts instances of PreviewGeneratorV5.exe.

To increase the conversion timeout, modify some of the configuration files that are found in the Smart Previews install location.
By default this path is:

C:\Program Files (x86)\BA Insight\Smart Previews Import Server\Bin

Before You Increase Conversion Timeout Values

Before you modify the conversion timeout settings, consider the following:

File conversion might take longer for files that:

  • Contain certain elements
  • Are complex
  • Are impacted by OCR operations
  • Network latencies also have the potential to influence conversion timeout errors.
  • Setting values must be consistent for each Preview generation mode.

Apply the Increased Conversion Timeout Value

In order to increase the maximum memory values, specify the following values for each of the configuration files.

PreviewGenerator.exe.config

Apply Values for Preview Generation
Copy
<BAInsight.PreviewGeneratorService.Properties.Settings>
    <setting name="ConversionTimeout" serializeAs="String">
        <value>60</value>
        This is the maximum value (in seconds).
    </setting>
</BAInsight.PreviewGeneratorService.Properties.Settings>

Note: Settings must match in both the PreviewGenerator.exe.config file and the AptivCachePreviewGenerator.exe.config file.

Do not specify a ConverstionTimeout value that is greater than the receiveTimeout value.


Copy
<system.serviceModel>
<bindings>
    <netNamedPipeBinding>
    <binding
    name="extendedPipesBinding"
    closeTimeout="00:02:00"
    openTimeout="00:02:00"
    receiveTimeout="00:20:00"
    sendTimeout="00:03:00"
maxBufferPoolSize="10000000"
maxBufferSize="10000000"
maxConnections="128"
maxReceivedMessageSize="10000000">….

For more information about binding configuration, see the Microsoft <basicHttpBinding> page.

  1. Save and close the configuration files.
  2. To successfully apply the new values, restart the preview generation process from the Web Admin console -> Control the Import Service page.

Apply Values for Offline Preview Generation

To increase the conversion timeout for the offline preview generation mode, open and modify the file ImportV5.exe.config with the following values.

ImportV5.exe.config

Increase Conversion Timeout
Copy
<applicationSettings>
<Import.Properties.Settings>
<setting name="ConversionTimeout" serializeAs="String">
<value>300</value>
    This is the maximum value (in seconds).
</setting>
  1. To successfully apply the new values, restart the preview generation process from the Web Admin console -> Control the Import Service page.