[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 678
  • Last Modified:

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?
0
marou
Asked:
marou
1 Solution
 
urimCommented:
you can do it by the ulimit bsh command, or limit for csh

ulimit -n 1024 will set your file descriptors to 1024
0
 
marouAuthor Commented:
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.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now