3 ms·
You can also set RLIMIT_NOFILE to prevent the number of FDs the app can open if you're worried about it.
by Jasper_ 5y ago
You can also set RLIMIT_NOFILE to prevent the number of FDs the app can open if you're worried about it.
- zxzax 5y agoI don't think that would necessary solve it, since the maximum number you can have open is still RLIMIT_NPROC * RLIMIT_NOFILE, right? It seems it would still be a problem as long as it's greater than RLIMIT_NPROC. Edit: I suppose you could fix it as long as you could guarantee that NPROC * NOFILE * maxlogins < kernel.pid_max... but to me this is piling on more workarounds.