How to manually obtaining core dump from daemons in RHEL6?
Hi,
I have issue with an application as it creates high CPU when I try to copy a zip file. I'm trying to get a daemon process dump for that process but need some help if I'm doing it right. After doing some research and Googled followed the steps below:
1. Set the daemon core ulimit to unlimited by editing /etc/sysconfig/init and added the line below: DAEMON_COREFILE_LIMIT=’unlimited’
2. Disabled ABRT to avoid as it can automatically capture and partially analyze cores. Used the command: # service abrt-ccpp stop
3. Set a location for the core to:
# echo "/var/tmp/core.%e.%p.%t" > /proc/sys/kernel/core_pattern
4.Restart the daemon XX_app:
# service XX_app restart
5.Reproduced the issue
6.Determined the PID of XX_app (say: 2528)
7.To generate the core file used the command: # kill -ABRT 2528
I cannot see any dump created.
Also tried below command and ending up the error:
# gcore [-o dumpname] 2528
core.WVTh55:4: Error in sourced command file:
Illegal process-id: [-o.
gcore: failed to create core. [-o
Would appreciate if someone can help me with this.
Thank you.
+Moin
Last edited by moinsobhan; 07-11-2016 at 11:36 PM.
|