Jump to content

[ChromeDriver] Best Flag to minimize CPU/RAM resource


Go to solution Solved by Danp2,

Recommended Posts

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 by aRandomGuy
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

  • Solution

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.

Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...