small medium large xlarge

Generic-user-small
02 Mar 2015, 05:07
roger dehe (2 posts)

with code Process.getrlimit(:NOFILE), I get:

[1024, 4096]

I do not change the limit with setrlimit.

I install unicorn in my machine, is it related?

Profile_pragsmall
09 Jul 2015, 09:50
Jesse Storimer (15 posts)

Sounds like the only difference is 0-based or 1-based counting.

In other words, Process.getrlimit(:NOFILE) is reporting the hard limit on the total number of FDs as 4096. If you try to open that many FDs, remembering that the first FD is 0, the maximum number you’ll reach is 4095.

You must be logged in to comment