LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 08-05-2015, 02:51 PM   #1
ANG
LQ Newbie
 
Registered: Aug 2015
Posts: 1

Rep: Reputation: Disabled
Question Hello all.Help require URGENT.


Hello all,

I am a newbie to Linux.I am having some custom application that runs on Red Hat Enterprise Linux server release 5.9.Recently I am facing problem of hanging of one of the custom application.It is happening very frequently (10-12 time in a day).
In order to analyze the same, I require memory dump of the hanged process.I need to have some means which will dump the memory and other dump information till the time it gets restarted.The application/process gets hanged and I need to restart the same in order to make it functional or running.The time of hanging is also unpredictable.
Is there any shell program to automate the dump till the process gets hanged and restarted? I mean to say the shell script will dump the memory continuously till the time process gets hanged?
I am not sure whether my idea as depicted above is correct or not?

I heard about one utility called GCORE in Linux in this regard?

Can any one help me out by what means can I achieve the goal to dump the memory till the process gets restarted?

Best Regards
 
Old 08-05-2015, 05:48 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,609

Rep: Reputation: 702Reputation: 702Reputation: 702Reputation: 702Reputation: 702Reputation: 702Reputation: 702
gcore is a command in the gdb debugger which will dump the process memory to a file.

Intro to using gdb here:
http://beej.us/guide/bggdb/
 
  


Reply


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
urgent help require for whois problem in linux muzammel Linux - General 2 01-17-2009 07:18 AM
oracle on solaris, needed urgent help, require it for exams? wrapster Solaris / OpenSolaris 3 06-09-2008 09:03 PM
Urgent require help & guidance on displaying for presentation vitalstrike82 SUSE / openSUSE 10 03-02-2008 10:48 PM
require your help in booting (Urgent) sundar1712 Red Hat 2 06-01-2007 07:29 AM
URGENT help require manishpatidar Linux - Hardware 1 02-03-2006 04:27 AM


All times are GMT -5. The time now is 02:10 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration