-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
lots of goroutines hanging in handleOutgoingMessage #399
Comments
i like all of those points. the errChan is a likely suspect In my opinion. |
Although, upon review, i dont see that happening anywhere. |
don't see what? 😕 |
The errChan being sent on, Im not seeing that case happen in my tests |
Ah I see https://gist.github.com/maybebtc/c6034877dadbee2b97de 3255 instances of This doesn't begin to explain why the muxer's outgoing pipe is blocked up so severely. |
I think one thing we might be able to do to help is not make handleOutgoingMessage its own goroutine. Or at least limit the number allowed in flight at a time. |
agreed. 👍 to rate-limiting producers. 904e9d5 |
My guess would be 5). |
Fixed in 1026244 |
I have a node (A) that has added a file and another (B) that is catting it. Node A's RAM usage spikes massively until it runs out of memory, sending a panic before the out of memory happens shows a massive number of goroutines waiting to send their messages in
handleOutgoingMessage
. Not entirely sure why this is happening yet, but its probably a bug.The text was updated successfully, but these errors were encountered: