Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly manage the life cycle of FD files on the recvfd client side #1628

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

denis-tingaikin
Copy link
Member

@denis-tingaikin denis-tingaikin commented May 16, 2024

Description

At this moment, each time the forwarder resolves new endpoints on the node, it gets the fd of the unix socket of the endpoint and never deletes it.

This PR fixes the problem via using nse expiration time.

Issue link

Fixes memory leak in
pprof.forwarder.alloc_objects.alloc_space.inuse_objects.inuse_space.031.pb.gz

How Has This Been Tested?

  • Added unit testing to cover
  • Tested manually
  • Tested by integration testing
  • Have not tested

Types of changes

  • Bug fix
  • New functionality
  • Documentation
  • Refactoring
  • CI

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>
Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>
Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>
Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>
Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>
@denis-tingaikin denis-tingaikin changed the title WIP: fix recvfd client Correctly manage the life cycle of FD files on the recvfd client side May 17, 2024
@denis-tingaikin denis-tingaikin marked this pull request as ready for review May 17, 2024 21:12
@denis-tingaikin denis-tingaikin self-assigned this May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Blocked
Development

Successfully merging this pull request may close these issues.

None yet

1 participant