Closed xiandong79 closed 6 years ago
Hmm, you should not need sudo
. What version of macOS are you running and what does ulimit -aH
return?
macOS Sierra version 10.12.6
➜ ~ ulimit -aH
-t: cpu time (seconds) unlimited
-f: file size (blocks) unlimited
-d: data seg size (kbytes) unlimited
-s: stack size (kbytes) 65532
-c: core file size (blocks) unlimited
-v: address space (kbytes) unlimited
-l: locked-in-memory size (kbytes) unlimited
-u: processes 1064
-n: file descriptors 10240
That's strange. Your hard limit for file descriptors is 10240, and Flintrock is requesting less than that (4096) so it should work.
When you get that error, what does ulimit -n
show?
~ ulimit -n
1024
By the way, the launching speed is amazing !!! You really did something!
Thank you. 😄
What do you get if you run ulimit -n 4096
followed by ulimit -n
?
~ ulimit -n
1024
~ ulimit -n 4096
ulimit: setrlimit failed: invalid argument
~ ulimit -n 8192
➜ ~ 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 709
-n: file descriptors 8192
➜ ~ ulimit -n
8192
It works well now!
I'm confused how the second attempt worked (8192) but the first didn't (4096).
You may have to adjust some kernel limits to let Flintrock modify the file descriptor limit without sudo. This discussion should help guide you.
Glad to hear it works now!
I have to use
sudo
to fix the problem.