View Full Version : Server keep hanging
bryan14
09-18-2004, 04:55 AM
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!
thuskey
09-18-2004, 09:22 AM
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
bryan14
09-18-2004, 09:58 AM
Hi Travis,
Thank you very much. Will try to monitor.
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.