-
Notifications
You must be signed in to change notification settings - Fork 47
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
Memory leak in streamsOutbound #477
Comments
the only way a peer was removed from the fix is included in release 10.1.1 of gossipsub, will try to test it in lodestar |
For reference Maybe this is a lot, with 50 target peers, so 800 MB of worst case. Outbound streams are only concerned with:
Let's assume we have a full stream that can't take more data. For (1) it's not critical unless it happens extensively. A specific peer not getting a forwarded message sometimes is okay since there should be 7 other peers on average forwarding the same message. For (2) it's more critical since we want to be sure that our message is received timely. However as long we can publish the message to a sufficient number of peers, we are good. Say if 1 out of 50 peers has a full outbound stream it does not matter at all. |
closed as this seems to be fixed |
Description
There are items inside streamsOutbound exist with the same size in 2 heap snapshots (one was taken 1 day after another)
there are 55 OutboundStream instances
however there are only 50 items inside Gossipsub
peers
setit means that when a peer is disconnected from node, it was removed from Gossipsub
peers
set but notstreamsOutbound
map. This is root cause of #6129 and only happen since Lodestar v1.12The text was updated successfully, but these errors were encountered: