aRandomGuy Posted December 14, 2023 Share Posted December 14, 2023 (edited) Hello, Recently i found my program eating too much CPU/RAM , i wonder if are there any flags that keep Chrome instace ( from ChromeDriver ) working with minimum resource ? I have found a list here : https://github.com/GoogleChrome/chrome-launcher/blob/main/docs/chrome-flags-for-tools.md, can you guy recommend which work best thank you, EDIT : the program cann't work in HEADLESS mode so it's not a option Edited December 14, 2023 by aRandomGuy Link to comment Share on other sites More sharing options...
Danp2 Posted December 15, 2023 Share Posted December 15, 2023 Hi... I see that no one has answered your post in almost 24 hours, so you may want to provide some additional details to clarify the problem you are encountering. Honestly, your post is somewhat vague IMO. Is it your AutoIt script that is eating too much CPU/RAM or is it Chrome? Give some details on the CPU/RAM usage and why you think it's too high. Are you opening multiple tabs? Which website(s)? etc. aRandomGuy 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
aRandomGuy Posted December 15, 2023 Author Share Posted December 15, 2023 2 hours ago, Danp2 said: Hi... I see that no one has answered your post in almost 24 hours, so you may want to provide some additional details to clarify the problem you are encountering. Honestly, your post is somewhat vague IMO. Is it your AutoIt script that is eating too much CPU/RAM or is it Chrome? Give some details on the CPU/RAM usage and why you think it's too high. Are you opening multiple tabs? Which website(s)? etc. Hello Danp2, thanks for stating my problem is previous post. here is what i want to to achieve : i have a compiled exe file (ChromeDriver inside ) -> which open/control 1 Chrome Instance -> work fine Currently i need to run 5 of them at the same time -> 5 Chrome Instance at the same time -> problem happens here, 5 chrome.exe process eat up too many RAM/CPU. I knew that i can simplize Chrome Instance by adding some flag to WD_Option ( so it will consume less resouce and my old PC can handle 5 of them without any lagging ) I found some flags here : https://github.com/GoogleChrome/chrome-launcher/blob/main/docs/chrome-flags-for-tools.md so, is it possible with AutoIT ? thank you for your help Link to comment Share on other sites More sharing options...
Solution Danp2 Posted December 15, 2023 Solution Share Posted December 15, 2023 I'm not sure why you think this is an AutoIt issue. To me, it sounds more like an issue with your implementation. For example -- ChromeDriver gets updated regularly, so I would never embed it into a compiled executable Why do you need to run five separate instances of Chrome / ChromeDriver? Why not a single instance of each and 5 tabs? You should be able to uses any of these flags as desired, but I can't really advise you on which ones would help in your situation. aRandomGuy 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
aRandomGuy Posted December 21, 2023 Author Share Posted December 21, 2023 On 12/15/2023 at 10:23 AM, Danp2 said: I'm not sure why you think this is an AutoIt issue. To me, it sounds more like an issue with your implementation. For example -- ChromeDriver gets updated regularly, so I would never embed it into a compiled executable Why do you need to run five separate instances of Chrome / ChromeDriver? Why not a single instance of each and 5 tabs? You should be able to uses any of these flags as desired, but I can't really advise you on which ones would help in your situation. Thank Dan, that's would be a solution to consider Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now