LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-29-2010, 03:50 AM   #1
kingston
Member
 
Registered: Mar 2008
Location: Bengaluru, India
Distribution: RHEL 5.5, Solaris 5.10
Posts: 215
Blog Entries: 1

Rep: Reputation: 21
How to create core dump when my application crashes?


Hi All

I am using RHEL 4.7 (32bit) on HP Proliant 380G6 series server. We are using Electric Cloud Agents on these servers. Nowadays we are facing some memory issues and its creates some kernel panic and then restarts the server. When i reported the issue to my application team, they asked me to come with the core dump. I googled it enough, then i set ulimit value as unlimited. (previously it was 0, then i made a entry in /etc/profile file as follows
ulimit -c unlimited) But still whenever my server restarts due to that kernel panic, it couldnt generate the core dump. My application was installed on /opt

The attached document has the kernel panic logs
Attached Files
File Type: txt reboot_einbalx0003.txt (3.3 KB, 14 views)
 
Old 12-29-2010, 09:26 PM   #2
ComputerErik
Member
 
Registered: Apr 2005
Location: NYC
Distribution: Debian, RHEL
Posts: 269

Rep: Reputation: 54
I don't think a core dump will help if the server is rebooting and kernel panic happening. As far as I have seen a core dump is just created when some application crashes, but the system is still stable and running. What you might want to look at doing is setting up for kernel dumps to get details on what is causing the kernel panic.

Also is there any reason you are running such an old version on new hardware? Have you checked and made sure that all of the drivers being used are certified on that hardware/OS, and all of your firmware is up to date? If these problems are only occurring on the DL380 G6 and you have other models in use it might be a hardware (or driver/firmware/etc) issue and not the application.
 
Old 12-29-2010, 11:54 PM   #3
kingston
Member
 
Registered: Mar 2008
Location: Bengaluru, India
Distribution: RHEL 5.5, Solaris 5.10
Posts: 215

Original Poster
Blog Entries: 1

Rep: Reputation: 21
hi

Thanks for your information. Unfortunately i dont have any other models with working condition. But we have a newer version of servers (380G7 series). We will start using this within a week, after that i can observe whether the new servers also facing the same issues or not.
Can you share some documents for kernel dump configuration?
Thanks again for your valuable time and information

Last edited by kingston; 12-30-2010 at 03:47 AM.
 
Old 04-29-2011, 12:04 AM   #4
kingston
Member
 
Registered: Mar 2008
Location: Bengaluru, India
Distribution: RHEL 5.5, Solaris 5.10
Posts: 215

Original Poster
Blog Entries: 1

Rep: Reputation: 21
Hi All,

I configured netdump services to capture the core dump when my application crashes itself and reboots the server. The following is the procedure to configure the netdump services
Quote:
Netdump configuration requires two computers:
- One acts as the netdump server - the box where all crash logs will be stored;
- The other one acts as the netdump client - the VPS host machine.


I. Prepare boxes

1). Install the "netdump-server" package on the server and the "netdump" package on the client (VPS host).
You can use any update agent (up2date, yum, swup) or download and install packages manually via RPM.
For example:
# rpm -ivh netdump-0.7.14-4.i386.rpm
# rpm -ivh netdump-server-0.7.14-4.i386.rpm
2). Make sure that netdump servers partition where /var/crash directory located (by default the directory where all crashes will be stored) have enough free disk space, at least as your netdump client (VPS host) box RAM size.


II. Configuration

1). On the netdump server, as root, type:
# passwd netdump
and supply a password for netdump user just like what you do to an ordinary user. Then do the following:
# chkconfig netdump-server on
# service netdump-server start
2). On the netdump client (VPS host), edit /etc/sysconfig/netdump then uncomment and set the NETDUMPADDR variable to the IP address of the netdump server.
For example:
NETDUMPADDR=10.199.243.39
Then execute:
# service netdump propagate

and supply the netdump password that was configured on the netdump server. Finally, execute:
# chkconfig netdump on
# service netdump start


III. Testing (optional)

To test if the netdump configuration is correct, perform the following
on the netdump client:
# cp /usr/share/doc/netdump-xxxxxx/crash.c .
# gcc -DKERNEL -DMODULE -I/lib/modules/$(uname -r)/build/include -c crash.c
# insmod ./crash.o
This will crash the system and you will see a kernel dump on the netdump server in the directory /var/crash/<IP of client><date>/. You will see the file "vmcore-incomplete" while the client is dumping data to the server. The file is renamed to "vmcore" once it is completed.

The size of "vmcore" will vary and may reach several gigs. On a system
with 512Mb of RAM, the above test created a vmcore of approximately
510Mb.
Now my application team found the exact issues and they are in the plan to upgrade the application version so that the ongoing issue will be fixed...

Thanks to gurus and google....
 
  


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
[SOLVED] Process crashes and does not dump core traene Programming 5 03-09-2024 04:28 AM
Creating a core dump from raw ram dump? cyent Programming 2 08-15-2010 06:57 PM
Core dump issues. Program crashes but does not generate core dump file sabeel_ansari Programming 1 10-07-2009 05:23 PM
How to take core dump for a application crashing with segmentation fault wjkkwjkf Red Hat 2 08-25-2008 01:30 PM
Tux Racer crashes X... where is the core dump? trusted_content Linux - General 4 06-08-2003 08:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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