Closed m-t-a-n-a-k-a closed 6 years ago
There are two issues. On macOS sometimes there is a hard limit that ulimit can't bypass, it must be changed in launchd config. Secondly, 10000 might not be enough since there are probably at least 20000 sockets required for the c10k spec, e.g. 10000 connections with one socket on the server and one socket on the client + a handful of server sockets for listening/accepting connections.
Thanks for your replay. As you pointed out, I solved the problem by creating limit.maxfiles.plist.
Excellent. Let me know how you get on with this family of gems :) I'm always happy to hear about how it's being used or if you have any problems.
Errno :: ENFILE: Too many open files in system - socket (2) error occurs when unit test is executed. I changed the maximum number with the ulimit command but it still fails. Is there a way to fix this error?
My enviroment: Operating System: OS X Yosemite 10.10.2