Run the following commands as root.
mkdir -p /var/cores coreadm -g /var/cores/%f.%n.%p.core -e global -e process -e \ global-setid -e proc-setid -e log
View the core configuration.
# coreadm
global core file pattern:
init core file pattern: %f.%n.%p.core
global core dumps: enabled
per-process core dumps: enabled
global setid core dumps: enabled
per-process setid core dumps: enabled
global core dump logging: enabled
|
See the coreadm man page for further information.
Set the size of the core dumps to unlimited.
# ulimit -c unlimited
# ulimit -a
coredump(blocks) unlimited
|
See the ulimit man page for further information.
Verify core file creation.
# cd /var/cores # sleep 100000 & [1] PID # kill -8 PID # ls |