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

Too many open files #76

Open
dominicletz opened this issue Dec 15, 2020 · 1 comment
Open

Too many open files #76

dominicletz opened this issue Dec 15, 2020 · 1 comment
Assignees

Comments

@dominicletz
Copy link
Member

On macos a long running diode client eventually shows too many open files errors. In my case ulimit descriptor count is set to 256, but active connections are very low (below 5)

ERROR Failed to connect local: dial tcp [::1]:8080: socket: too many open files server=eu2.prenet.diode.io:41046
ERROR Failed to connect local: dial tcp [::1]:8080: socket: too many open files server=eu2.prenet.diode.io:41046
ERROR Failed to connect local: dial tcp [::1]:8080: socket: too many open files server=eu2.prenet.diode.io:41046
ERROR Failed to connect local: dial tcp [::1]:8080: socket: too many open files server=eu2.prenet.diode.io:41046
ERROR Failed to connect local: dial tcp [::1]:8080: socket: too many open files server=eu2.prenet.diode.io:41046
ERROR Failed to connect local: dial tcp [::1]:8080: socket: too many open files server=eu2.prenet.diode.io:41046
ERROR Failed to connect local: dial tcp [::1]:8080: socket: too many open files server=eu2.prenet.diode.io:41046
ERROR Failed to connect local: dial tcp [::1]:8080: socket: too many open files server=eu2.prenet.diode.io:41046
ERROR Failed to connect local: dial tcp [::1]:8080: socket: too many open files server=eu2.prenet.diode.io:41046
ERROR Failed to connect local: dial tcp [::1]:8080: socket: too many open files server=eu2.prenet.diode.io:41046
ERROR Failed to connect local: dial tcp [::1]:8080: socket: too many open files server=eu2.prenet.diode.io:41046
ERROR Failed to connect local: dial tcp [::1]:8080: socket: too many open files server=eu2.prenet.diode.io:41046
ERROR Failed to connect local: dial tcp [::1]:8080: socket: too many open files server=eu2.prenet.diode.io:41046
% ulimit -a
-t: cpu time (seconds)              unlimited
-f: file size (blocks)              unlimited
-d: data seg size (kbytes)          unlimited
-s: stack size (kbytes)             8192
-c: core file size (blocks)         0
-v: address space (kbytes)          unlimited
-l: locked-in-memory size (kbytes)  unlimited
-u: processes                       1392
-n: file descriptors                256

% uname -a
Darwin 1447.local 19.6.0 Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64 x86_64
@sc0Vu sc0Vu self-assigned this Dec 16, 2020
@sc0Vu
Copy link
Contributor

sc0Vu commented Dec 21, 2020

@dominicletz did you close connection properly? There is no timeout in remote/client connection, the connection will hang till remote/client disconnect.

And I tried with client_debug, the connections(socks) were all closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants