Jump to content

Recommended Posts

  • Administrators
Posted

My dedicated server every day or two will become unresponsive.  I can't get to any of my sites, WHM, or even SSH in via putty when this happens.  I have to request a power cycle and then the server and everything comes back up.

I want to figure out how/why this is happening.  I'm on a CentOS box running whm/panel.  How/where do I look at log files to see what is causing this issue?

Posted (edited)

The logs should hang out in /var/logs.  You'll probably need to ls -lha that to see whats available, then less some of them.  Some google-fu on filenames will be your friend.

 

If you need to know the exact time it goes down, just set up a ping to run from another machine to it.   Do something like 

 

 ping -i 5 [ip address] | while read pong; do echo "$(date): $pong"; done > logfile.txt

 

That will ping your box every five seconds with a timestamp.

 

Then you should be able to do

 

less logfile.txt | grep Request 

 

and find the time.  It'll give you a starting place to look.

Edited by enim
  • Administrators
Posted

Since posting I found the issues in /var/logs/messages. 

 

Appears PHP code on the webserver is spawning something over and over again and the processes don't die off.  The machine runs out of memory, and tries to invoke the oom_killer which kills off memory hog processes, but does not always succeed in saving the system.

 

Is there some monitoring software I can install to track down what php code is doing this?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...