change ulimit permanently on hp-ux 11.31 (2211 Views)
Reply
Advisor
mohd280
Posts: 16
Registered: ‎08-29-2011
Message 1 of 8 (2,211 Views)
Accepted Solution

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 ....

Acclaimed Contributor
Dennis Handly
Posts: 25,089
Registered: ‎03-06-2006
Message 2 of 8 (2,185 Views)

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

[ Edited ]

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

kctune maxfiles_lim=65535

Advisor
mohd280
Posts: 16
Registered: ‎08-29-2011
Message 3 of 8 (2,177 Views)

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!
Acclaimed Contributor
Dennis Handly
Posts: 25,089
Registered: ‎03-06-2006
Message 4 of 8 (2,169 Views)

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.

Advisor
mohd280
Posts: 16
Registered: ‎08-29-2011
Message 5 of 8 (2,154 Views)

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

Thank you . Wokred perfectly . 

Advisor
mohd280
Posts: 16
Registered: ‎08-29-2011
Message 6 of 8 (2,147 Views)

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

Still when logout the default value disappear . Do I need to put in profile
Acclaimed Contributor
Dennis Handly
Posts: 25,089
Registered: ‎03-06-2006
Message 7 of 8 (2,138 Views)

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.

Acclaimed Contributor
Dennis Handly
Posts: 25,089
Registered: ‎03-06-2006
Message 8 of 8 (2,119 Views)

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.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.