After opening the file with File.new(big_file)(without closing it) 1016 times (Ubuntu) or 1017 times (CentOS), it seems that there is a limit, and it raises:
Too many open files @ rb_sysopen - big_file (Errno::EMFILE)
Is there a way to raise this limit?
On my systems is ulimitinstalled on unlimited.
source
share