Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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.


Comment on Re: file handle limitation of 255
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://849609]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2014-09-16 03:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (155 votes), past polls