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?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

you can do it by the ulimit bsh command, or limit for csh

ulimit -n 1024 will set your file descriptors to 1024

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.