Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

High CPU Usage from Leftover Chrome Process #2861

Answered by mdmintz
nuweq asked this question in Q&A
Discussion options

Does anyone know why a Chrome process remains active even after closing the browser and exiting ChromeDriver? This lingering process continues to use CPU resources, leading to high CPU usage and potentially slowing down the system, especially after running multiple tests. This issue occurs in both headless and non-headless modes. How can I resolve this issue? Thanks.

Chromedriver version = 126.0.6478.62
Seleniumbase version = 4.27.5
Operating system = Windows 11 Enterprise

image

You must be logged in to vote

See #2505 (comment)

Only happens in UC Mode.

Also see #2300 (comment)

Replies: 1 comment 1 reply

Comment options

See #2505 (comment)

Only happens in UC Mode.

Also see #2300 (comment)

You must be logged in to vote
1 reply
Comment options

Try to introduce a timeout between driver requests, I had the same problem for a while when running the process as a task within the scheduler, so far it is working fine. I added a minimum 5000ms delay to help ensure that no overlap occurs.
FYI: the randomness is just to mimic human behavior!

randomValue = (CInt(Math.Floor((15 - 1 + 1) * Rnd())) + 1) * 1000 + 5000
Threading.Thread.Sleep(randomValue)
driver.Navigate.GoToUrl(url)

Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /