Operating System - HP-UX
1837897 Members
3535 Online
110123 Solutions
New Discussion

Increase nofiles descriptors

 
SOLVED
Go to solution
Youlette Etienne_2
Regular Advisor

Increase nofiles descriptors

Hello,

What kernel parameter do I change to increase the ulimit for the following:

nofiles(descriptors) 60
If at first you don't succeed, change the rules!
4 REPLIES 4
Pete Randall
Outstanding Contributor
Solution

Re: Increase nofiles descriptors

Try maxfiles.


Pete

Pete
RAC_1
Honored Contributor

Re: Increase nofiles descriptors

You need to check following.
maxfiles - soft limit for no. of file that a process can have open
maxfiles_lim - hard limit
nfile - system wide open files limit

Anil
There is no substitute to HARDWORK
Sandman!
Honored Contributor

Re: Increase nofiles descriptors

"maxfiles" is the soft limit for the number of file descriptors a process can have open. "maxfiles_lim" is the hard limit for the number of file descriptors a process can have open. You can adjust the limits up or down but no higher than the hard limit w/o rebuilding the kernel with an increased maxfiles_lim.

# kmtune -a maxfiles

# kmtune -q maxfiles_lim

view the no. of file descriptors (nofiles).

# ulimit -a

to change nofiles in current session use:

# ulimit -n

hope this helps!
Youlette Etienne_2
Regular Advisor

Re: Increase nofiles descriptors

changed maxfiles. Thanks!
If at first you don't succeed, change the rules!