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.
- Sahi's Auto Threading feature must be enabled by setting the below properties in
userdata.properties
.- Set
sahi.auto_thread.enabled
property as true. - 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.
- Set
- There may be other applications running in your system which have occupied RAM. So ensure that your system has enough RAM available for playback.
- 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>
- For AWS instances, it is advisable to enable unlimited mode.
- Login to AWS Management Console.
- Right-click on an instance used as Sahi node.
- Click on Instance Settings > Change credit specification.
- Click on the checkbox for Enable Unlimited mode.