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

MAX FDS #1769

Closed
sharmay opened this issue Nov 24, 2019 · 1 comment
Closed

MAX FDS #1769

sharmay opened this issue Nov 24, 2019 · 1 comment

Comments

@sharmay
Copy link

sharmay commented Nov 24, 2019

tsl0922/ttyd#245

I have nofiles limit set to a high number (required for a module testing I am working on) and soft limit is same as hard limit.
ulimit -Sn
1073741816
ulimit -Hn
1073741816

When I am starting ttyd_linux.x86_64 bash

[2019/11/14 13:45:19:0989] NOTICE: ttyd 1.5.2 (libwebsockets 3.1.0)
[2019/11/14 13:45:19:0989] NOTICE: tty configuration:
[2019/11/14 13:45:19:0990] NOTICE:   start command: bash
[2019/11/14 13:45:19:0990] NOTICE:   close signal: SIGHUP (1)
[2019/11/14 13:45:19:0990] NOTICE:   terminal type: xterm-256color
[2019/11/14 13:45:19:0990] ERR: OOM allocating 1073741816 fds
[2019/11/14 13:45:19:0990] ERR: ZERO RANDOM FD
[2019/11/14 13:45:19:0990] ERR: libwebsockets init failed

May be use a sane limit instead of max fds settings ?

@lws-team
Copy link
Member

May be use a sane limit instead of max fds settings ?

What is a "sane limit"? If you tell a process it can have that many fds, you shouldn't be surprised if it starts getting ready to do what you asked, right?

Maybe you should set ulimit -n to a "sane limit".

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