LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-14-2014, 02:06 PM   #1
circus78
Member
 
Registered: Dec 2011
Posts: 233

Rep: Reputation: Disabled
How to debug a system crash


Hi,
sometimes I am unable to reach any service (except ping on public IP address) on my server (physical housing hosted in a farm).
So I am forced to ask technicians to reboot my machine.
After reboot, I usually check logs (mail.log, syslog, messages and so on) but I can't figure the specific problem.
I suspect OOM problem, but how can I track which service caused this?
Now I just installed sysstat, I hope it can give me further info next time.
Other suggestions?
 
Old 08-15-2014, 04:03 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,924

Rep: Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916
A scan with rkhunter would not go wrong.

I ran out of memory once on a desktop. I was compiling a compiler which was linked against ~20 libs and the 'put together' stage needed ~200M which wasn't free on the box in question. The exe was only 2Meg. The kernel simply killed the process, and I got a line on stdout. Put something in rc.local_shutdown(?sp?) to trap the last dmesg.
You could also have top > file and free >> file in there, or other statistics.
An invisible one can be disk errors, so a check of smartctl would not be bad either.

Are you sure it isn't some DoS thing?
 
Old 08-16-2014, 11:54 AM   #3
circus78
Member
 
Registered: Dec 2011
Posts: 233

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
A scan with rkhunter would not go wrong.

I ran out of memory once on a desktop. I was compiling a compiler which was linked against ~20 libs and the 'put together' stage needed ~200M which wasn't free on the box in question. The exe was only 2Meg. The kernel simply killed the process, and I got a line on stdout. Put something in rc.local_shutdown(?sp?) to trap the last dmesg.
You could also have top > file and free >> file in there, or other statistics.
An invisible one can be disk errors, so a check of smartctl would not be bad either.

Are you sure it isn't some DoS thing?
Hi, thank you very much for your suggestion. I just connected via KVM to my server (again crash!), now I am waiting for bash after console login... I will suddenly check with "top" and smartctl, cat /proc/mdstat, free, dmesg and so on.
Thankyou!
 
Old 08-17-2014, 03:17 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
It could be a hardware issue. Often memory will go bad, for example. I'd recommend running memtest and running a self-test on the disk(s) via smartctl.
 
  


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
Linux Mint 9 Isadora X Window crash how to debug? michielv Linux Mint 0 08-04-2010 02:38 PM
How to debug a Suse "11.2" suspend crash brianpbarnes Linux - Software 0 12-19-2009 11:11 AM
kernel crash dump: where do I debug? ashlesha Linux - Software 0 08-23-2006 07:53 PM
howto debug X crash from kdm shutdown? johnpipe Linux - General 0 06-11-2004 12:27 AM
How to debug an X application crash pbhj Linux - Software 1 06-12-2003 10:10 AM

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

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