Simpler Navigation coming for Servers and Operating Systems
Coming soon: a much simpler Servers and Operating Systems section of the Community. We will combine many of the older boards, and you won't have to click through so many levels to get at the information you need. If you are looking for an older board and do not find it, check the consolidated boards, as the posts are still there.
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

change ulimit permanently on hp-ux 11.31

SOLVED
Go to solution
Highlighted
mohd280
Advisor

change ulimit permanently on hp-ux 11.31

Hi there ,

 

     I went through many discusstion here but still cannot find how can this be done. Current value of ulimit -n is 2048

 

I need to change it to 65536 or unlimited as required on from Oracle .

 

 

    I'm not fully aware of HP-UX but know how change values and kernel parameter , if I can change it from /etc/profile 

what lines need to be added .

 

 

   Thanks ....

8 REPLIES
Dennis Handly
Acclaimed Contributor
Solution

Re: change ulimit -n permanently on HP-UX 11.31

In order to increase "ulimit -n" you must use kctune(1m) to increase maxfiles_lim(5):

kctune maxfiles_lim=65535

mohd280
Advisor

Re: change ulimit permanently on hp-ux 11.31

Thanks dennis , so after increasing this value . All users get effected like root and oracle or more work need to be done!
Dennis Handly
Acclaimed Contributor

Re: change ulimit -n permanently on HP-UX 11.31

>All users get effected like root and oracle or more work need to be done.

 

Try using "ulimit -n", if that hasn't changed, you may have to login again.

mohd280
Advisor

Re: change ulimit -n permanently on HP-UX 11.31

Thank you . Wokred perfectly . 

mohd280
Advisor

Re: change ulimit -n permanently on HP-UX 11.31

Still when logout the default value disappear . Do I need to put in profile
Dennis Handly
Acclaimed Contributor

Re: change ulimit -n permanently on HP-UX 11.31

>Still when logout the default value disappear . Do I need to put in profile?

 

No, this should be permanent.  Unless there is already something in /etc/profile or ~/.profile that changes it.

Dennis Handly
Acclaimed Contributor

Re: change ulimit -n permanently on HP-UX 11.31

>Thank you. Worked perfectly.

 

If you're happy with your answers, please kick on the Kudos star on each helpful answer.

Stephenred
Occasional Visitor

Re: change ulimit -n permanently on HP-UX 11.31

worked beautifully-thanks


Dennis Handly wrote:

In order to increase "ulimit -n" you must use kctune(1m) to increase maxfiles_lim(5):

kctune maxfiles_lim=65535