Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am pretty new to Linux, and I am using Oracle Linux 5.6.64.1. Recently, I encounter the system hang frequently. I would like to know how I could troubleshoot the problem.

Updated

Downvoted twice, so I guess something wrong with my question? But as I said, I am new to linux, and can't really provice any further information. I read from some forum that I should check /var/log/messages, so I did. But frankly speaking, I can't conclude anything from the log. The system just hangs, and no error or messages on console.

share|improve this question

closed as not a real question by Iain May 25 '12 at 6:52

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

    
Do you have any other information about the issue? What's the server run? Are there any logs or messages on the console when this occurs? –  Shane Madden May 25 '12 at 1:13
3  
Take a peek at How to Ask. –  MDMarra May 25 '12 at 1:19
    
It just hang. There is no messeages on the console. As I mentioned in my question, I am pretty new to linux, so I have no idea where to start looking for log. –  K Hein May 25 '12 at 1:34
    
/var/log/messages is a good starting point. –  MDMarra May 25 '12 at 1:44
    
But what should I be looking for in /var/log/messages? –  K Hein May 25 '12 at 1:46

2 Answers 2

up vote 0 down vote accepted

As most people would suggest, look at /var/log/messages. What you're looking for are messages that occur in and around the time the system 'hangs'. If you don't find anything obvious, look in other log files for clues. Most Linux variants log just about EVERYTHING (usually in /var/log/messages). Some things may not be obvious at first and you may have to do some searching for messages that appear out of the 'ordenary'.

Also, if you are using Linux over an SSH or other remote connection and are encountering hangs, it is likely network latency.

share|improve this answer

How hung is the system? Can you ping it? If there is an attached keyboard, does the light come on when you press the caps-lock key?

Does the hang always happen at or around the same time of day? Check for cron jobs occurring at that time.

Does last show the same users logged in? Ask what they were doing.

Do hangs occur at roughly the same time after a reboot? Your system may be overheating: check fans and cooling.

Check your hardware. Make sure memory dimms and cards are properly seated. Run memory tests, and any other hardware diagnostics that come with the system (check the vendor's web site). Check bios settings.

Carefully read boot messages, looking for anything that might indicate a problem.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.