Hi Ram Kadam,
I'm sorry to hear that you're facing critical issues with your Azure VM and automation execution. Based on the information provided, it seems like there might be memory-related problems leading to the intermittent "ConnectionLostException" errors during the automation process and the "Aw, Snap!" error with "Out of memory" exception when accessing the VM via a browser.
Given the severity of the issue and the potential impact on productivity, here are some steps you can take to address the problem:
- Memory Usage Analysis: Monitor the memory usage of your Azure VM during automation execution and when accessing the VM via a browser. Use performance monitoring tools to identify if there are any spikes or consistently high memory usage that could be causing the issues.
- Check Resource Limits: Ensure that your Azure VM is provisioned with sufficient resources to handle the automation workload and the browser usage. In this case, with 8 GB RAM, it's possible that the VM may be reaching its limits, especially when running multiple processes. Optimize Automation Code: Review your automation code, particularly the usage of resources like WebDriver and browser instances. Make sure to properly close and dispose of them after use to prevent memory leaks and unnecessary resource consumption. Investigate Network Connectivity: Although you mentioned that you've reviewed network configurations, it's essential to double-check for any network-related issues that could be causing intermittent connection problems during automation. Review Browser Extensions: If the "Aw, Snap!" error occurs only during browser access, inspect any installed browser extensions. Disabling or removing extensions one by one can help identify if any of them are causing conflicts or excessive memory usage. Browser Configuration: Check the browser settings and configurations for any issues that might be contributing to the "Out of memory" error. For instance, browser caching or session storage could impact memory usage. Windows Updates: Ensure that your Windows 10 operating system is up to date with the latest patches and updates. Review Logs: Examine system logs, application logs, and event viewer entries on the VM to look for any specific error messages or patterns that could provide insights into the root cause of the issues.
If the problem persists even after taking these steps, it might be beneficial to engage Microsoft Azure Support or seek assistance from an Azure expert who can perform a more in-depth analysis of your Azure VM's performance and configuration.
Remember to take backups of critical data and configurations before attempting any significant changes or troubleshooting steps to avoid any data loss.
I hope these suggestions help you in resolving the issues and ensuring uninterrupted automation execution and browser access. Please let me know if this is helpful?