Solved

how to generate core dump in redhat linux

Posted on 2013-11-07
9
538 Views
Last Modified: 2013-11-26
how to generate core dump in redhat linux?  thanks in advance.
0
Comment
Question by:mokkan
  • 4
  • 4
9 Comments
 
LVL 21

Assisted Solution

by:Mazdajai
Mazdajai earned 400 total points
ID: 39631862
Do you mean application or system (redhat) cores?
0
 

Author Comment

by:mokkan
ID: 39632113
System redhat cores
0
 

Author Comment

by:mokkan
ID: 39633185
How to make linux server goes panic, if the server is hung.
0
 
LVL 21

Assisted Solution

by:Mazdajai
Mazdajai earned 400 total points
ID: 39633239
To enable core dump, you can either add ulimit -c unlimited in your profile because it only affect the current session. Or add the following lines in /etc/security/limits.conf -
*	soft	    core 	unlimited
*	hard    core	unlimited

Open in new window


Afterwards you can follow this article to generate a core.
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

Author Comment

by:mokkan
ID: 39633272
Thank  you very much. IS anything we can do it in console if the server is hung?
0
 
LVL 21

Assisted Solution

by:Mazdajai
Mazdajai earned 400 total points
ID: 39633298
Do you mean to dump the memory content into a file when a server is hung?
0
 
LVL 25

Assisted Solution

by:madunix
madunix earned 100 total points
ID: 39634432
A core dump is a on disk representation of a state of a user space application at the time of its abnormal termination. Core dumps can be used to diagnose the cause of a crash of an application. To generate core dump in RHEL 5 and 6 please refer the following KBase article :
"How can core dumps be enabled for daemons (services) in Red Hat Enterprise Linux?"
https://access.redhat.com/site/solutions/5352

More sample:
https://kb.bluecoat.com/index?page=content&id=FAQ2217&actp=LIST
http://www-01.ibm.com/support/docview.wss?uid=swg21254575
http://linuxtechres.blogspot.com/2011/09/how-to-enable-core-dump-for-application.html
0
 
LVL 21

Accepted Solution

by:
Mazdajai earned 400 total points
ID: 39634712
>>we can do it in console if the server is hung?

Tough to say without further information. If it is completely frozen you will need to go through the logs and verify hardware. I would suggest open another thread for this.
0
 

Author Closing Comment

by:mokkan
ID: 39677878
Thank you
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now