6

Linux server hangs for several times without knowing the exact reason. Which file or log should I look at? The server responds to ping, but I can not ssh to it. And when I plug a monitor into it, it does not have any response. Any idea?

mattdm
  • 6,740
snow8261
  • 179

1 Answers1

7

Kernel hangs are difficult to debug as no oops message is displayed on screen as in case of crash and if you are really lucky you will see something in /var/log/messages as during hang your entire system hangs along with syslog daemon and nothing will be write inside these files.

With that said hangs can be as simple as temporary performance issue caused due to memory or cpu contention,using inefficient algorithm or may be as complicated as deadlock.So like I mentioned above if you are really lucky

1: Check in /var/log/messages or may be run dmesg to get some pointer 2: If your system is hanging on regular basis then configure kdump along with sysrq keys to know the exact problem.

For more info please refer to http://people.redhat.com/anderson/crash_whitepaper/