Server keep hanging

bryan14

New member
Joined
Sep 18, 2004
Messages
2
Hi Everybody,
I need help urgently. My unix server keep hanging by itself and it needs some time to restart to normal again. I don't know what are the possiblities that cause this problem. Can anybody please kindly advise?

Thank you!
 
Without logging into the server and monitoring it for a while, it may be impossible to track down. I would have to say that the most common reason for a server to become none responsive is a script or other application that has taken up every bit of memory or cpu. Try monitoring the server with "top -c" and you may very well find your problem.

If it doesn't happen often enough to just sit and watch, set up a cron job that pipes the top command out to log file so after the next crash, you can see what was running last.

Cron:
* * * * * top -n1 -c >> /root/top.out

or Shell:
while true; do top -n1 -c >> /root/top.out; sleep 60; done
 
Back
Top