Operating System - HP-UX
1829456 Members
1753 Online
109992 Solutions
New Discussion

Re: where to setup zero file core dump

 
Erwin Vodegel
Occasional Contributor

where to setup zero file core dump

Hello,

Scopeux (Performance collection daemon) has generated a core file of 100Mb, so my root fs fill up to 100%. Where can I set coredump files are zero big.

Thanx,
Erwin
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: where to setup zero file core dump

Core dump files need to have information in them so that problems can be diagnosed.

Here is a thread on scopeux core dumps. Might help:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xa99785079106d71190050090279cd0f9,00.html

Scopeux keeps dying.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xcfeba848deccd61190050090279cd0f9,00.html

Manual on scopeux configuration:
http://docs.hp.com/hpux/pdf/B4967-90058B.pdf
Perhaps somewhere in there you can re-direct the dumps to a filesystem.

Also, try strings /core

You might get some ideas. A lot of these issues have to do with older versions and not having properly patched systems.

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
James R. Ferguson
Acclaimed Contributor

Re: where to setup zero file core dump

Hi:

One way is to establish 'core' as a softlink to '/dev/null':

# ln -s /dev/null core

Regards!

...JRF...

Paula J Frazer-Campbell
Honored Contributor

Re: where to setup zero file core dump

Hi
In the root dir create a file called "core" with no permissions.


core -------

Paula
If you can spell SysAdmin then you is one - anon
Steve Steel
Honored Contributor

Re: where to setup zero file core dump

Hi

File core with permissions 000 should be sufficient.


Exists but cannot be written to


Also the posix shell has "ulimit -c" to
specify the size of cores:

-c Total 512-byte blocks in the core dumps.

See man sh-posix(1) .

Programmatically,use setrlimit(2) with the RLIMIT_CORE resource which
option does something similar:

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
V. Nyga
Honored Contributor

Re: where to setup zero file core dump

Hi,

for our CAD applications where we don't want core files we create a directory 'core'.
For our applications core directoy has normal permissions, because no core file is written if core directory exists.

Regards
Volkmar
*** Say 'Thanks' with Kudos ***
A. Clay Stephenson
Acclaimed Contributor

Re: where to setup zero file core dump

You can do this anywhere/anytime by doing a ulimit -c 0 (in the POSIX shell). This limits the size of a core file to 0. A ulimit -a will display the current settings. A convenient place is to make an entry in .profile.

However, this is fixing the symptom rather than actually fixing the problem. You should look for and install MeasureWare patches and if that does not reolve the problem then contact HP and report the bug.
If it ain't broke, I can fix that.