You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Docker selenium/chrome-standalone in version 3.6.0
Expected Behavior
To quit browser, clean up memory, stop process.
Actual Behavior
Tons of Chrome + Java threads remain hanging in the system after my task finishes. i5 CPU is on 95% on all cores and memory on 8gigs.
Steps to reproduce -
I hava a loop and in each loop step I start new driver instance (remote one), go to URL, do what I want and then i call close() and quit(). I also wait for 5 secs (just to be sure the browsers gets quit and memory and threads are maintained. Then new loop step starts over.
I do that because whenI try to start up one browser window and process all my URLs in that instance Selenium quits on like 10th URL - memory error/unexpected crash.
self.browser.close() # Was added as advice found on stack overflow.self.browser.quit()
sleep(5)
Guys what I'm doing wrong in terms of quiting the browser/driver instance? Or tell me, how to "dig into" system (don't forget I use Remote driver) and kill the threads manually?
Thanks a lot.
The text was updated successfully, but these errors were encountered:
Meta -
OS:
Linux
Selenium Version:
3.6.0
Browser:
Chrome
I use Docker selenium/chrome-standalone in version 3.6.0
Expected Behavior
To quit browser, clean up memory, stop process.
Actual Behavior
Tons of Chrome + Java threads remain hanging in the system after my task finishes. i5 CPU is on 95% on all cores and memory on 8gigs.
Steps to reproduce -
I hava a loop and in each loop step I start new driver instance (remote one), go to URL, do what I want and then i call
close()
andquit()
. I also wait for 5 secs (just to be sure the browsers gets quit and memory and threads are maintained. Then new loop step starts over.I do that because whenI try to start up one browser window and process all my URLs in that instance Selenium quits on like 10th URL - memory error/unexpected crash.
This is how I start the browser:
This is how I try to quit the instance:
Guys what I'm doing wrong in terms of quiting the browser/driver instance? Or tell me, how to "dig into" system (don't forget I use Remote driver) and kill the threads manually?
Thanks a lot.
The text was updated successfully, but these errors were encountered: