Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2016-10-01 18:14 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (3 votes). Check out past polls.