Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: file handle limitation of 255

by Corion (Pope)
on Jul 14, 2010 at 18:59 UTC ( #849609=note: print w/replies, xml ) Need Help??

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://849609]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2018-06-21 05:15 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (117 votes). Check out past polls.