http://www.perlmonks.org?node_id=849609


in reply to file handle limitation of 255

See FileCache. Your OS has a hard limit on open file handles, and maybe it is 255 no matter what ulimit tells you.

Replies are listed 'Best First'.
Re^2: file handle limitation of 255
by radnus (Novice) on Jul 14, 2010 at 19:07 UTC
    Hard to believe, considering that I am using Solaris 10. In any case, this restriction is not coming from PERL, but the underlying OS, right?

      Yes. Perl (not PERL) has no limit on the number of open file handles.

      When I logged in as a non root user to a Solaris 10 system, my default file limit (somewhat to my surprise) was 256 but I was able to change it easily enough as shown in the shell session below:

      # ulimit -n 256 # ulimit -n 1024 # ulimit -n 1024

        This problem of 255 limit happens even after the hard/soft ulimit has been altered. That is why I started this thread. I set this on /etc/system :- set rlim_fd_max=65536 set rlim_fd_cur=65536 So that I get :- host# ulimit -n 65536 But still I have 255 limitation.