Operating System - HP-UX
1823369 Members
2756 Online
109654 Solutions
New Discussion юеВ

How to disable or restrict core dumps

 
SOLVED
Go to solution
Jonathan Grymes
Frequent Advisor

How to disable or restrict core dumps

I have an HPUX 11.23 Itanium system.
4 REPLIES 4
Steven E. Protter
Exalted Contributor
Solution

Re: How to disable or restrict core dumps

Shalom,

ulimit -Sc 0

or

ulimit -c 0

This will limit core dump size to zero bytes thereby preventing them.

Put it in /etc/profile to handle the problem globally.

Note that sometimes application vendors need core dumps and you can override this setting for individual users.

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
Sandeep_Chaudhary
Trusted Contributor

Re: How to disable or restrict core dumps

another way

SAVECRASH=0
in "/etc/rc.config.d/savecrash" file
Dennis Handly
Acclaimed Contributor

Re: How to disable or restrict core dumps

You can also disallow core files by doing "mkdir core" for each directory, if a small number.

For 11.31, there is coreadm(1m).
Bill Hassell
Honored Contributor

Re: How to disable or restrict core dumps

> SAVECRASH=0

Note: this has no effect on core dumps. This value refers to HP-UX crashes, not core files from programs. Setting SAVECRASH=0 means that a system crash cannot be diagnosed (and therefore fixed and prevented in the future).


Bill Hassell, sysadmin