0

Environment:

  1. selenium-server-standalone-3.8.1.jar
  2. geckodriver-v0.24.0
  3. firefox 60.6.1

Everything was set up 6 months ago and everything worked well, the tests passed through the Selenium and there were no problems.

Since 08/23/2019 problems began. Without any launches test inside the Selenium process, started to run spontaneously browsers (firefox) and did not turn off. These processes overload the processor on the server, after which the server starts to brake and also the site that is on the server. These "browser launches" continue until Selenium is reloaded by open browsers after which our automatic tests are blocked and display an error: "unable to create new native thread".

  • As soon as one such browser spontaneously opens, the processor load becomes 100%.
  • These browser launches occur approximately 1 time in 4-5 minutes.
  • All tests are disabled, but Selenium lives its own life, and continues to launch the browsers.

Maybe someone faced a similar problem? Any ideas why this is happening and how to fix it?


The launch of selenium occurs on command:

su screener -c "/usr/bin/java -Dwebdriver.gecko.driver=/usr/local/bin/geckodriver -jar /usr/lib/selenium/selenium-server-standalone-3.8.1.jar -enablePassThrough false -port 4444  >/var/log/selenium/selenium_std.log 2>/var/log/selenium/selenium_error.log &"
undetected Selenium
  • 183,867
  • 41
  • 278
  • 352
Alex
  • 3
  • 2
  • I don't know if that's the right answer, but when it happen to me, I just run _killall Firefox_ and/or _killall "Web Content"_ – MUL8RSoftware Aug 26 '19 at 10:26

1 Answers1

0

Term yourself lucky to have sailed smoothly with geckodriver-v0.24.0 and selenium-server-standalone-3.8.1.jar till 08/23/2019.

As per the documentation:

geckodriver

To work with geckodriver-v0.24.0 you need:

  • Selenium Python client version greater then 3.14
  • Firefox client version minimum 57 (which seems to be okay)

You can find the detailed GeckoDriver, Selenium and Firefox Browser compatibility chart in the discussion Which Firefox browser versions supported for given Geckodriver version?


Additional considerations

As a part of the best practices:


Outro

Limit chrome headless CPU and memory usage

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352