-
Notifications
You must be signed in to change notification settings - Fork 21
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
NSMgr leaks memory somewhere (probably in grpcfd
)
#375
Comments
Tried to run NSM without any In In |
@Bolodya1997 grpcfd should be cleaning up after open file descriptors on connection close |
@Bolodya1997 in recvfd we are caching files and closing them when the client Connection closes: https://github.com/networkservicemesh/sdk/blob/204761283a51aa10efcf3d994c36c74b50355e26/pkg/networkservice/common/mechanisms/recvfd/client.go#L88-L94 But we appear to be neglecting to do so on the server side: In principle on the Server side once https://github.com/networkservicemesh/sdk/blob/204761283a51aa10efcf3d994c36c74b50355e26/pkg/networkservice/common/mechanisms/recvfd/server.go#L92 happens the files should eventually get closed due to finalization by the garbage collector... but explicit is better than implicit. |
@edwarnicke |
@Bolodya1997 And released in https://github.com/edwarnicke/grpcfd/releases/tag/v0.1.1 :) Many thanks :) |
Current Behavior
NSMgr leaks memory somewhere (probably in
grpcfd
) after long time working.nsmgr-8g8qn.pb.gz
Steps to Reproduce
main.go
:go tools pprof
.The text was updated successfully, but these errors were encountered: