1837283 Members
3548 Online
110115 Solutions
New Discussion

Re: Core files

 
SOLVED
Go to solution
ramesh_6
Frequent Advisor

Core files

How to manage the core file area? what is the configuration file where we give the settings of the core files. I am running HP-UX B.10.10 OS

Your help is highly appreciated

REgds
Ramesh
5 REPLIES 5
Steve Steel
Honored Contributor

Re: Core files

Hi


See man savecore



steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Mark Greene_1
Honored Contributor

Re: Core files

You can use the ulimit command in either the /etc/profile or in individual login ID's .profiles to set the size limit for the core file: ulimit 200000

unfortunately, neither the man pages for ulimit or core really address this.

HTH
mark
the future will be a lot like now, only later
Paula J Frazer-Campbell
Honored Contributor
Solution

Re: Core files

Hi

/etc/rc.config.d/savecrash

# SAVECRASH: Set to 0 to disable saving system crash dumps.
SAVECRASH=1
ensure that it is set to 1.

And savecrash_dir is set to your required dir.


HTH

Paula
If you can spell SysAdmin then you is one - anon
S.K. Chan
Honored Contributor

Re: Core files

You mean you want to limit the core file size because I think you can't control where the core file is generated, you can only limit its size. Also you might want to check out SAM->RoutineTasks->SystemLog
which allow you to manage your system log files. To limit the core file size ..
(in POSIX shell, check ..)
# man setrlimit
==> allows you to set a max size on a core file for a process and its child processes.

Also you can use "ulimit -c" to set the max core dump size (for instance ..)
# ulimit -c 4096
==> would limit core for all children of the shell to 2MB.
Sanjay_6
Honored Contributor

Re: Core files

Hi Ramesh,

If you talking about the system crash files, the config file is /etc/rc.config.d/savecrash in 11.0. It should be /etc/rc.config.d/savecore in 10.10. You can modify the directory where the crash dump will be saved in this file. The command to save a previous core dump manually should be

savecore -vr

Hope this helps.

Regds