Operating System - HP-UX
1847171 Members
6762 Online
110263 Solutions
New Discussion

Setting ulimit Permanently in Hp-UX 11i v 3

 
Francis Kabaso
Occasional Contributor

Setting ulimit Permanently in Hp-UX 11i v 3

I have a problem. I wish to set the coredumps limit to unlimited but when time I log off and on the unlimited setting reverts to the previous size. What should I do to make the change permanent.

This is what I am doing:

#ulimit -a
#ulimit -Sc unlimited
#ulimit -Hc unlimited

I need help please. My boss is on my case!!!
4 REPLIES 4
Yogeeraj_1
Honored Contributor

Re: Setting ulimit Permanently in Hp-UX 11i v 3

hi,

did you check the man pages?

1. Filesize Setup
To set the file size limit to 51,200 Bytes
# ulimit -f 100

2. Datasize
# ulimit -d 100 (for 51,200 Bytes)

3. Stacksize
# ulimit -s 100(for 51,200 Bytes)

4. Coredumpsize
# ulimit -c 100(for 51,200 Bytes)

5. Memory
# ulimit -m 100(for 51,200 Bytes)

6. Display all current resource limits
# ulimit -a

e.g.
SRV2:>ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 2048
SRV2:>ulimit -c 100
SRV2:>ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) 100
nofiles(descriptors) 2048
SRV2:>ulimit -c 4194303
SRV2:>ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 2048
SRV2:>


hope this helps!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Yogeeraj_1
Honored Contributor

Re: Setting ulimit Permanently in Hp-UX 11i v 3

hi again,

see also:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=892976


hope this helps!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Steven E. Protter
Exalted Contributor

Re: Setting ulimit Permanently in Hp-UX 11i v 3

Shalom,

I generally set figures for all users in /etc/profile and override those settings for Oracle in the .profile for the user or even the startup script for the database.

Its probably not necessary in this case to set the figures for every user of the system.

Your boss should pat you on the back for using ITRC forums, great place to get answers.

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
Dennis Handly
Acclaimed Contributor

Re: Setting ulimit Permanently in Hp-UX 11i v 3

>I wish to set the coredumps limit to unlimited but when time I log off and on the unlimited setting reverts to the previous size. What should I do to make the change permanent?

As mentioned in the link above, you need to put it in your .profile or in the system /etc/profile.

If you need more than 4? Gb, I think you also need to fiddle with some kernel parm?

>My boss is on my case!!!

I assume the next thing he wants is something to clean up the massive core files? ;-)