Skip to content

Idle elastic java low level client continuously create new TCP socks #27220

@fangqiao

Description

@fangqiao

I was testing a new backend service, which created connections to a cluster of three boxes but it didn't use the connections at all. I accidentally found out it was creating 3 new tcp socks every second, when I ran lsof -p pid to examine open file usage.

I commented out all communication modules, with only few lines of code creating es connections left. It became obvious that es connection caused the problem. My production system didn't have the problem as it actively used the es connections.

I guess it is the es connection heart beat that continuously opening new TCP socks every second but it didn't close them.

I think this is an issue that should be fixed. It likely opens too many files that will cause serious problems.

I am running es 5.6.0 server and java client.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions