selenoid icon indicating copy to clipboard operation
selenoid copied to clipboard

Session id invalid when running tests in more than 16 containers

Open success-stha opened this issue 4 years ago • 3 comments

We are getting invalid session id while running tests in more than 16 containers. The tests run fine when there are less than 16 containers.

Error: org.openqa.selenium.NoSuchSessionException: invalid session id

Machine Specification:

  • RAM : 64 gb
  • CPU: 56 core
  • Model: Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz
  • OS: Red Hat Enterprise Linux Server 7.7

Here is out Browser.json

{
 "MicrosoftEdge": {
        "default": "88.0",
        "versions": {
          "88.0": {
            "image": "browsers/edge:88.0",
            "port": "4444",
            "volumes": ["/opt/docker/fileDownloadLocation:/home/selenium/Downloads","/opt/docker/selenoid/logs/:/opt/selenoid/logs/"],
            "path": "/",
            "shmSize": 2147483648,
            "tmpfs": {"/tmp": "size=2048m", "/var": "size=1024m"},
            "mem" : "2048m"
          }
        }
      }
}

success-stha avatar Jan 06 '21 05:01 success-stha

@success-stha seems to be Chromedriver issue. E.g. https://stackoverflow.com/questions/56002701/selenium-webdriver-error-invalid-session-id

vania-pooh avatar Jan 06 '21 11:01 vania-pooh

while we didnt saw this issue with Chrome 98.0 , we start seeing it again with 99.0+ . anything we can check further?

Dor-bl avatar May 08 '22 12:05 Dor-bl

@Dor-bl probably could be also related to increased /dev/shm consumption. Try to increase shmSize parameter in browsers.json.

vania-pooh avatar May 08 '22 19:05 vania-pooh

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jan 26 '24 01:01 github-actions[bot]