Operating System - HP-UX
1846988 Members
3282 Online
110257 Solutions
New Discussion

How to set ulimit on HP-UX 11i for non-root users

 
ShanA_2
Occasional Advisor

How to set ulimit on HP-UX 11i for non-root users

i want to set ulimit parameter for oracle user.
# ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 60

in the above i want to reset the
coredump=unlimited
nofiles=4096
how do i set?
will it affect other users in the system?
9 REPLIES 9
Peter Godron
Honored Contributor

Re: How to set ulimit on HP-UX 11i for non-root users

Hi,
and welcome to the ITRC forums with your first question.
ulimit -n 4096
ulimit -c unlimited

These will only work if ulimit -aH (Hard Limit Values) allows it

For more info on impact, please see:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1040943

If you found these answers helpful, please read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
ShanA_2
Occasional Advisor

Re: How to set ulimit on HP-UX 11i for non-root users

Thanks for the reply, please let me know the kernel parameter for coredump.
Peter Godron
Honored Contributor

Re: How to set ulimit on HP-UX 11i for non-root users

Hi,
no seperate coredump kernel parameter required, as set by shell.
ulimit -cH will give hard max value for coredumpsize.

For initial reading please see:
http://acs.ucsd.edu/info/coredump.php
ShanA_2
Occasional Advisor

Re: How to set ulimit on HP-UX 11i for non-root users

but, all the settings are vanish when i exit the current shell, how do i make it permanent for all the users.
Peter Godron
Honored Contributor

Re: How to set ulimit on HP-UX 11i for non-root users

Hi,
for individual users edit there .profile file in their home directories.

If you want to make changes for all users change the /etc/profile file.

Then logout/login to activate.
Steven E. Protter
Exalted Contributor

Re: How to set ulimit on HP-UX 11i for non-root users

Shalom,

Doing the unlimited thing which is good for most users breaks some oracle environment scripts. You'll need to debug them when oracle coughs up a furball concerning the unlimited issue. You can make it work, its just a little more manual work.

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
Peter Godron
Honored Contributor

Re: How to set ulimit on HP-UX 11i for non-root users

Hi,
sorry to see that me answers:
"1-3: The answer didn't really help answer my question, but thanks for your assistance!"

Can you please let us know if there is anything else of your question unanswered or if not, please close this thread, summarizing the solution.
Nick Stocker
Occasional Contributor

Re: How to set ulimit on HP-UX 11i for non-root users

I think the command you are looking for is: "limit descriptors 4096". Run this as the user you want it changed for. This will reset the nofiles(descriptors) limit for that user.
Dennis Handly
Acclaimed Contributor

Re: How to set ulimit on HP-UX 11i for non-root users

It appears you want to make coredump and nofiles larger.

To set the latter larger, you may have to use kctune/kmtune to set maxfiles_lim to 4096. (Mentioned in Peter's link.)

(Unless you used ulimit to set it smaller for yourself and now want it bigger.)

>Nick: I think the command you are looking for is: "limit descriptors 4096".

I'm not aware of that on HP-UX.