Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-11-2016, 11:23 PM   #1
LQ Newbie
Registered: May 2016
Posts: 5

Rep: Reputation: Disabled
How to manually obtaining core dump from daemons in RHEL6?


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.

Last edited by moinsobhan; 07-11-2016 at 11:36 PM.
Old 07-12-2016, 02:04 AM   #2
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 14,902

Rep: Reputation: 2062Reputation: 2062Reputation: 2062Reputation: 2062Reputation: 2062Reputation: 2062Reputation: 2062Reputation: 2062Reputation: 2062Reputation: 2062Reputation: 2062
Is core dumping enabled in the kernel? A copy of the kernel config is kept in /boot in most distros.
Old 07-24-2016, 08:12 PM   #3
LQ Newbie
Registered: May 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
Resolved: the above steps worked after giving full permission of core location.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Core Dump on Solaris (Question about core file) dayalan_cse Solaris / OpenSolaris 5 12-29-2014 07:56 AM
Obtaining core from SUID program pgrodt Linux - Security 5 09-29-2010 06:42 PM
Creating a core dump from raw ram dump? cyent Programming 2 08-15-2010 05:57 PM
Core dump issues. Program crashes but does not generate core dump file sabeel_ansari Programming 1 10-07-2009 04:23 PM
i hv to manually press the power button on shutdown after all daemons have been stopp alice_neo Linux - Software 6 09-12-2007 02:55 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration