Operating System - HP-UX
1833838 Members
2264 Online
110063 Solutions
New Discussion

Change parameter listed for ulimit command

 
SOLVED
Go to solution
Edwin Ruiz_2
Super Advisor

Change parameter listed for ulimit command

Hi!
How can i change values listed for ulimit command, we have troubles with IAS on HP-UX 11.00 and ORACLE says that we need to change the following values. I have that values actually
# ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 262144
stack(kbytes) 81612
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 2048

I want to change
coredump(blocks): unlimited
nofiles(descriptors) 4096
vmemory 4194304

How can i do that? do i need to restart my server?

Thanks for ur information
6 REPLIES 6
Stefan Farrelly
Honored Contributor
Solution

Re: Change parameter listed for ulimit command

ulimit -S to change soft limit (up to max of hard limit), ulimit -H to change hardlimit. see man sh-posix

eg. to change data; ulimit -Sd

Only if you cant increase them high enough might you need to change a kernel parameter and reboot.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Graham Cameron_1
Honored Contributor

Re: Change parameter listed for ulimit command

As per Stefan, you need to change these parameters for the user which owns IAS(presumably oracle) by editing the .profile
and logging out and in before starting IAS.

No need to restart unless you have had to change any kernel parameters.

-- Graham
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.
Edwin Ruiz_2
Super Advisor

Re: Change parameter listed for ulimit command

but.. i just need to exec ulimit -S or ulimit -H for change the values? what kernel parameters are would i change if that no function?
Steven E. Protter
Exalted Contributor

Re: Change parameter listed for ulimit command

nfiles for nofiles

I think you can't increase nofiles higher hant he nfiles setting.

kmtune | grep nfile

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Edwin Ruiz_2
Super Advisor

Re: Change parameter listed for ulimit command

I a trying to change # ulimit -Hc unlimited but no function.. i dont have erros but actual value it is same.
Edwin Ruiz_2
Super Advisor

Re: Change parameter listed for ulimit command

I just use #ulimit -c unlimited and #ulimit -n 4096 , that function. I edit .profile and add this instruccion. All is working fine!! thanks