I was working with some long-running Blue Prism processes recently and noticed that memory usage can increase massively over time, which sometimes impacts performance. And that is where memory management becomes so important.
Here are a few best practices that can be performed for better memory management:
- Close applications and release system resources when not in use.
- Use Cleanup stages inside loops to free memory.
- Avoid keeping unnecessary data in memory.
- Process data in batches instead of loading everything at once.
- Use Work Queues for large datasets rather than holding large collections in memory.
- Load only the required range or rows from Excel files.
- Split files into manageable chunks to process if possible.
- Regularly monitor Digital Worker memory usage during UAT and hypercare.
- Restart workers in scheduled downtime if required.
Would love to know how you handle high memory consumption in long-running automations.
Best regards,
Sourav S
Consultant - Automation Developer
WonderBotz