Skip to content

[🐞 Bug]: Socket connection is not getting closed in the hub node in Selenium grid 4.6.0 #11336

@Codude

Description

@Codude

What happened?

Selenium grid : 4.6.0
OS : ubuntu 18.04 LTS

While we run more threads in parallel several drivers are created simultaneously. For a single automation run, we are getting many unclosed processes piled up on on JVM (PFA). This happens after we migrated from selenium 4.2.2 to 4.6.0

Screenshot 2022-11-30 at 11 09 12 AM

How can we reproduce the issue?

Run hub and node in selenium 4.6.0 and try to open as many drivers as you can and check the running process in JVM.

Relevant log output

java    12621 test  482u     IPv6            2995095       0t0      TCP <host1>:41134-><host2>:https (CLOSE_WAIT)
java    12621 test  483u     IPv6            2995123       0t0      TCP <host1>:41616-><host2>:https (CLOSE_WAIT)
java    12621 test  484u     IPv6            2995128       0t0      TCP <host1>:41626-><host2>:https (CLOSE_WAIT)
java    12621 test  485u     IPv6            3001717       0t0      TCP <host1>:42424-><host2>:https (CLOSE_WAIT)
java    12621 test  489u     IPv6            3001733       0t0      TCP <host1>:42456-><host2>:https (CLOSE_WAIT)

Operating System

Ubuntu 18.04

Selenium version

Java 4.6.0

What are the browser(s) and version(s) where you see this issue?

Chrome 106.0.5249.119

What are the browser driver(s) and version(s) where you see this issue?

ChromeDriver 106.0.5249.61

Are you using Selenium Grid?

4.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-gridEverything grid and server relatedC-javaJava BindingsI-defectSomething is not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions