LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: Disabled
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.
 
Old 07-12-2016, 02:04 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
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
moinsobhan
LQ Newbie
 
Registered: May 2016
Posts: 5

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:15 PM.

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