Performance Issues in Playback

warningEnsure that you are using the latest Sahi version.

Browser Playback becomes slow

symptom For longer runs, the playback gradually becomes slow and more scripts are aborted.
resolution Slow performance can be attributed to a variety of reasons. Below are few known resolutions.
  1. Sahi's Auto Threading feature must be enabled by setting the below properties in userdata.properties.
    1. Set sahi.auto_thread.enabled property as true.
    2. Specify a value for sahi.threshold.cpu_usage property. The recommended value range is 70 to 90. An optimal value for this property varies per system. So run your scripts multiple times to deduce an optimal value for your system.
  2. There may be other applications running in your system which have occupied RAM. So ensure that your system has enough RAM available for playback.
  3. In browser_types.xml, search for chrome. Add --disable-background-timer-throttling to browser startup options for chrome.
    <options>--no-default-browser-check --user-data-dir=$userDir\browser\chrome\profiles\sahi$threadNo --proxy-server=127.0.0.1:$port --disable-popup-blocking --always-authorize-plugins --allow-outdated-plugins --enable-npapi --incognito --disable-background-networking --disable-component-update --disable-renderer-backgrounding --disable-background-timer-throttling</options>
  4. For AWS instances, it is advisable to enable unlimited mode.
    1. Login to AWS Management Console.
    2. Right-click on an instance used as Sahi node.
    3. Click on Instance Settings > Change credit specification.
    4. Click on the checkbox for Enable Unlimited mode.