Operating System - HP-UX
1836995 Members
2136 Online
110111 Solutions
New Discussion

Re: How to increase Hard/Soft limit of coredump?

 
Deepu Chakravarty
Regular Advisor

How to increase Hard/Soft limit of coredump?

$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 2015464
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) 0
nofiles(descriptors) 4096

Hard and Soft limits of coredump are both 0. How to increase it to unlimited?

$ ulimit -Hc unlimited
sh: ulimit: The specified value exceeds the user's allowable limit.
10 REPLIES 10
Muthukumar_5
Honored Contributor

Re: How to increase Hard/Soft limit of coredump?

Try to set as,

$ ulimit -HSc 4194303

It is allowed, I hope.

--
Muthu
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: How to increase Hard/Soft limit of coredump?

which operating system you are using?

can you try as,

$ ulimit -HSc 4194303

what are you getting?

--
Muthu
Easy to suggest when don't know about the problem!
Deepu Chakravarty
Regular Advisor

Re: How to increase Hard/Soft limit of coredump?

No value is changed by 'ulimit -HSc 4194303'

# ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 2015464
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) 0
nofiles(descriptors) 4096
Deepu Chakravarty
Regular Advisor

Re: How to increase Hard/Soft limit of coredump?

$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 2015464
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 4096

It is changed to 4194303. But I need the value to be 'unlimited'.
Muthukumar_5
Honored Contributor

Re: How to increase Hard/Soft limit of coredump?

what is the operating system you are using? uname -a?

Is patch update done?


--
Muthu
Easy to suggest when don't know about the problem!
Antonio Cardoso_1
Trusted Contributor

Re: How to increase Hard/Soft limit of coredump?

ulimit -HSc unlimited
seems to work...
Senthil Prabu.S_1
Trusted Contributor

Re: How to increase Hard/Soft limit of coredump?

Hi,
To set your corelimit as ulimited. use this command;

#unlimit coredumpsize

HTH,
Prabu.S
One man's "magic" is another man's engineering. "Supernatural" is a null word.
Senthil Prabu.S_1
Trusted Contributor

Re: How to increase Hard/Soft limit of coredump?

Hi,
If the above command does not work. use this option,

# ulimit -c unlimited
# ulimit -a
core file size (blocks, -c) unlimited


HTH,
Prabu.S
One man's "magic" is another man's engineering. "Supernatural" is a null word.
Senthil Kumar .A_1
Honored Contributor

Re: How to increase Hard/Soft limit of coredump?

Hi,

Try these commands...

ulimit -c unlimited
ulimit -Hc
ulimit -Sc

The first command sets the value.
The last 2 commands just reports the value..

Note: you need to relogin and start afresh if you get the error "sh: ulimit: The specified value exceeds the user's allowable limit." Please see my example in "P.S"

Regards,

Senthil Kumar .A

P.S: My example..

$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 4294967292
stack(kbytes) 262144
memory(kbytes) unlimited
coredump(blocks) 0
$ ulimit -c unlimited
$ ulimit -Hc
unlimited
$ ulimit -Sc
unlimited
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Bill Hassell
Honored Contributor

Re: How to increase Hard/Soft limit of coredump?

The ulimit value is unlimited by dafault. Since there is no kernel parameter to limit this value, ulimit -c must be set in /etc/profile or the user's .profile so just grep for it:

grep ulimit /etc/profile $HOME/.profile

Now there is a possibility that a previous sysadmin has a custom script to set ceertain values so ulimit may not appear in these files, but is found in these extra settings. To see when ulimit -c was run, insert some debug echos in /etc/profile and .profile like this:

echo "ulimit -c is: $(ulimit -a | grep coredump)

Then either change the unwanted ulimit to:

ulimit -Sc 0

or remove the ulimit line completely. Once a hard lower limit has been set, it cannot be rfaise by any further ulimit commands. Note that ulimit -c 0 and ulimit -Hc 0 are identical -- the limit is zero and cannot be raised.

Note that it is a recommended sysadmin practice to use ulimit -Sc 0 to stop coredumps but with -S, the (knowledgeable) user can increase the value because it is soft for this session. ulimit -c 0 is not recommended because it is not changeable.


Bill Hassell, sysadmin