LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-26-2012, 12:02 AM   #1
rhel1984
LQ Newbie
 
Registered: Sep 2012
Posts: 2

Rep: Reputation: Disabled
How to take memory dump in Linux


Hi All,

I need to take memory dump from the server(rhel 5) for troubleshooting purpose.
My rhel server is very much up and running. I tried to search the existing threads but was not of much help.
Can you please help me in this.

Thanks
 
Old 09-26-2012, 09:09 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Are you asking how to force a panic to make a kdump crash dump? If so read the warning and do the command below.


***WARNING***
The command below crashes your running system (forces a reboot).
This could have consequences for your filesystems and especially for any databases you might be running.
***WARNING***

Code:
echo c > /proc/sysrq-trigger
The dump will be put in /var/crash after the reboot.
 
Old 09-26-2012, 10:56 PM   #3
rhel1984
LQ Newbie
 
Registered: Sep 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for the reply.
The server is in production environment so I cant go for crash dump.
We are facing high memory usage issues and in-order to troubleshoot the issue we need to take
memory dump for a specific application process.
Is there any way to do this without rebooting?

Thanks..
 
Old 09-27-2012, 11:41 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
You can run strace on the actual process.
Type "man strace" for more details.

You can also look at memory maps and other detail for the process under the /proc directory structure.
Type "man proc" for more details.
 
Old 10-01-2012, 08:08 AM   #5
Ginola
Member
 
Registered: Sep 2012
Location: London
Distribution: CentOS, RHEL, Ubuntu
Posts: 73

Rep: Reputation: Disabled
Out of interest, what is the Application?

cat /proc/[pid]/maps, then gdb works for us.
 
1 members found this post helpful.
  


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
Tool for Memory Dump? linuxunix Linux - Newbie 1 12-10-2010 04:10 AM
SLES 9 Memory Dump help djcrash1981 SUSE / openSUSE 6 01-10-2010 05:43 AM
Memory dump from a picture frame dpeterson3 Linux - General 1 09-29-2009 06:21 PM
Mission Critical Linux - In Memory Core Dump Rostfrei Programming 3 09-10-2008 10:35 AM
Memory dump command? fanoliv Linux - General 1 03-29-2008 12:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:35 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