Operating System - HP-UX
1844208 Members
2661 Online
110229 Solutions
New Discussion

change core dump destination

 
Omar Alvi_1
Super Advisor

change core dump destination

Hi,

Different applications core dump and the file causes the root filesystem to filll up - affecting other innocent applications.

Is there acofniguration file where core file destinations are configured? Is it applciation dependent or OS dependent.

It would be nice to put the core by default to a harmless filesystem.

Appreciate the assistance

Thanks and Regards,

Omar Alvi
2 REPLIES 2
Jaime Bolanos Rojas.
Honored Contributor

Re: change core dump destination

Omar, there have been some discussions about this before, please take a look at this thread, I am sure it will help you out,

http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1032448

Regards,

jaime.
Work hard when the need comes out.
A. Clay Stephenson
Acclaimed Contributor

Re: change core dump destination

It is possible to append .PID to the filename but the core image will always be written to the current working directory. You can do a ulimit -c 0 to limit the size of a core file. You can also create a zero length file 'core' without write permissions in the current working directory and no new core file will be generated. Of course, all of these techniques are simply band-aids; the real solution is to fix the application. I simply can't imagine a situation in which dumping core is considered routine. That is very sloppy coding and sloppy system administration. I am deeply embarassed when code that I write does this and I will not tolerate from any vendor.
If it ain't broke, I can fix that.