Closed garyyu closed 5 years ago
This happened to me many times, after having 200+ peers for a while I was getting the Too many open files
error and grin stopped listening to 3414. I fixed it by increasing ulimit -n
I'm using the stratum to mine directly to it with NH, and thus the number of workers can be become really big....and I'm experiencing the same issue. Is there a way to clean up all these dead connections? (I increased the ulimit, but this is a bandaid solution)
FYI: This continues to be an issue even in v1.0.3.
V1 issue. Feel free to open another issue if it is still the case for v2.
With master branch at 23th Apr. (commit 97e96e4f), on a seed node with more than 200 peers connection, I find this in this morning:
And the peers dropped to 12! then I found the
3414
port is not in listening, and found the related panic here:And check the server configuation:
So it could be caused by a connection number overload (>1024).
But definitely we need an improvement to avoid this thread crash!