Link to home
Start Free TrialLog in
Avatar of marou
marou

asked on

How can i increase the number of file descriptors in Solaris 2.x

How can i increase the number of file descriptors per process and per system in Solaris 2.x?
ASKER CERTIFIED SOLUTION
Avatar of urim
urim

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of marou
marou

ASKER

Yes it is, but there is a rlim_cur (current resource limit), which is the default value, and a rlim_max (maximum resource limit), which is the system-imposed maximum value for the resource. In Solaris 2.5.1 and 2.6, the hard limit value set by the system is 1024. You can reset the limits in the /etc/system file as follows:

          set rlim_fd_cur = 1024
          set rlim_fd_max = 8192

If you put the above in the /etc/system file, users will have a default of 1k open files and be able to set their own limit up to 8k. If you're superuser (root), you can go beyond the max limit to some arbitrarily high value.

Anyway, thank you for your useful ideas.