how to generate core dump in redhat linux

how to generate core dump in redhat linux?  thanks in advance.
mokkanAsked:
Who is Participating?
 
MazdajaiCommented:
>>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
 
MazdajaiCommented:
Do you mean application or system (redhat) cores?
0
 
mokkanAuthor Commented:
System redhat cores
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
mokkanAuthor Commented:
How to make linux server goes panic, if the server is hung.
0
 
MazdajaiCommented:
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
 
mokkanAuthor Commented:
Thank  you very much. IS anything we can do it in console if the server is hung?
0
 
MazdajaiCommented:
Do you mean to dump the memory content into a file when a server is hung?
0
 
madunixCommented:
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
 
mokkanAuthor Commented:
Thank you
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.