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


in reply to Re^2: file handle limitation of 255
in thread file handle limitation of 255

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

Replies are listed 'Best First'.
Re^4: file handle limitation of 255
by radnus (Novice) on Jul 15, 2010 at 17:40 UTC

    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.

      I can assure you that Solaris 10 does not have some bizarre 255 limitation on process file descriptors, at least that's not what I've experienced, having used many Solaris 10 systems over the years. Besides, no modern Unix vendor could survive with such a ridiculous limit. It therefore appears that you have a broken Solaris 10 system and that your 255 file handle "limitation" can be fixed with proper Solaris 10 system administration. Based on a random Solaris 10 google, you seem to be doing the right thing with /etc/system. I am not a Solaris sysadmin though, so I suggest you ask Sun for technical support and/or ask for help on a Solaris 10 system administration forum. I hope it's not something silly like having to reboot and/or login/logout before the new file descriptor limit takes effect.

        It really is a nasty problem with Solaris, that needs some patching. (looks shady) Check: http://developers.sun.com/solaris/articles/stdio_256.html