Issue
A system with multiple WebRequest calls appears to become erratic after upgrading the AS-P to EBO 2022 and above. After a reboot, multiple scripts execution are hanging.
In previous EBO versions, the script would be stopped and return an Unknown Exception error message.
Product Line
EcoStruxure Building Operation
Environment
- Building Operation Automation Server Premium
- Building Operation Automation Server Bundled
- Building Operation Enterprise Server
Cause
The Architectural Guidelines always recommended a maximum of 5 concurrent WebRequest calls. In EBO 2022, this limitation is enforced to limit the impact on the system resources and prevent scripts stopping due to Unknown Exception errors.
Web requests exceeding this number will be queued, and the scripts doing these calls will hang on that function as the queue is emptied. This will directly impact the execution of other scripts.
Resolution
1. Enforce a good scripting practice to prevent more than 5 concurrent Web Request calls.
2. Cascade the execution of scripts to make sure that after a reboot, the scripts are executed in a sequence to prevent simultaneous calls filling the queue and causing scripts to be stopped.