Linode Forum Index Linode Forum
Linode Community Forums
 


My linode360 not responding and all websites down

Click here to go to the original topic

 
       Linode Forum Index -> General Discussion
Author Message
ichsie2036



Joined: 03 Sep 2009
Posts: 35

Posted: Tue Sep 15, 2009 7:32 am    Post subject: My linode360 not responding and all websites down  

The system seems to be very busy and not responding to anything: ssh and web. And it takes like 10 minutes to just reboot it from my linode control panel by clicking 'Reboot' button. And the progress is stale at 0% for 5 minutes and then at 25% for another 5 minutes and so forth....

It's happened several times so apparently something wrong with my system or something else.

After reboot everything's back to normal and websites are fast and responsive. But approx 24 hours later, it suddenly goes into the same trouble again - very busy and occupied not responding to anything, took dozens of minutes to just reboot.

I've no idea what may be the trigger of this? Misconfiguration? My PHP code? But all my websites have been fine on the previous host.

My distro is Debian 5.0. Things I've installed:

1. apache, mysql, php
2. rsnapshot (some cron jobs)
3. postfix
4. vsftpd (though automatically stopped)
5. chkrootkit
6. fail2ban

Anyone have any clue? I can provide logs for analysis. Thanks a lot! It's really annoying. :|


P.S. What logs do I need to see to find out what php script may have caused the problem?
Back to top  
mwalling



Joined: 10 Dec 2007
Posts: 335

Posted: Tue Sep 15, 2009 8:39 am    Post subject:  

Sounds like an OOM, as described here: http://www.linode.com/forums/viewtopic.php?t=4460
Back to top  
Guspaz



Joined: 26 May 2009
Posts: 1147
Location: Montreal, QC

Posted: Tue Sep 15, 2009 10:06 am    Post subject:  

Run 'top', hit 'M', and then leave that open in an SSH terminal. When your box fails, the processes using the most memory at the time of failure will be visible. If you really are running out of memory, this will give you a snapshot of the state of things at the point of failure.

This helped me track down a similar problem that I was having, which turned out to be an incompatibility between two specific versions of Apache and PHP (that was known to the respective developers).
Back to top  
ichsie2036



Joined: 03 Sep 2009
Posts: 35

Posted: Tue Sep 15, 2009 10:06 am    Post subject:  

mwalling wrote: Sounds like an OOM, as described here: http://www.linode.com/forums/viewtopic.php?t=4460

Thanks mwalling. It sounds like it. I've made the changes according to the thread. Also I've modified the swappiness to 25:

http://www.linode.com/wiki/index.php/Swappiness

Do you think it's a good move?

Fingers crossed. But I see no spikes of I/O rate before the server went irresponsive in the control panel performance graphs. So still not sure if it's the disk I/O that has slowed things down, though very likely I think.
Back to top  
eas



Joined: 21 Mar 2009
Posts: 35

Posted: Wed Sep 16, 2009 2:14 am    Post subject:  

You should really run munin or something that regularly logs key resource consumption and performance metrics so you can go back and see what's getting driven over the edge. guspaz's suggestion to leave top running is good too, but if you have munin running all the time then you already have useful information the next time something like this happens.

Are you sure that the box is becoming unresponsive to everyone? I wondered if you might somehow be tripping fail2ban and end up having it lock you out for a while. Perhaps a cron job on your local machine that is trying to rsync or otherwise ssh into your linode?
Back to top  
ichsie2036



Joined: 03 Sep 2009
Posts: 35

Posted: Wed Sep 16, 2009 6:59 am    Post subject:  

eas wrote: You should really run munin or something that regularly logs key resource consumption and performance metrics so you can go back and see what's getting driven over the edge. guspaz's suggestion to leave top running is good too, but if you have munin running all the time then you already have useful information the next time something like this happens.

Are you sure that the box is becoming unresponsive to everyone? I wondered if you might somehow be tripping fail2ban and end up having it lock you out for a while. Perhaps a cron job on your local machine that is trying to rsync or otherwise ssh into your linode?

The problem is I can't leave an SSH tunnel window on (I use putty) all day long. The problem occurs every 1 or 2 days, unexpectedly. :( Does munin record all the performance variables even when I'm off SSH?
Back to top  
mwalling



Joined: 10 Dec 2007
Posts: 335

Posted: Wed Sep 16, 2009 7:23 am    Post subject:  

Yes.

http://you.dontlike.us/munin/dontlike.us/you.dontlike.us.html
Back to top  
ichsie2036



Joined: 03 Sep 2009
Posts: 35

Posted: Thu Sep 24, 2009 9:55 pm    Post subject:  

mwalling wrote: Yes.

http://you.dontlike.us/munin/dontlike.us/you.dontlike.us.html

Thank you, it helped a lot. My server has been working happily for the last week. Seems it's indeed OOM that's causing the trouble.

So Munin. Will it automatically start recording and graphing the performance data of my machine after I install it? I don't know how to configure it.
Back to top  
mjrich



Joined: 16 Jun 2008
Posts: 151

Posted: Thu Sep 24, 2009 10:36 pm    Post subject:  

Quote: So Munin. Will it automatically start recording and graphing the performance data of my machine after I install it? I don't know how to configure it.
No, you'll need to edit /etc/munin/munin*.conf first, create a virtual host (apache in your case) profile for it, and most likely select a few plugins to load.

See any one of the hundreds of Debian/Munin tutorials on the web, and post back if you're still having problems. :)
Back to top  
ichsie2036



Joined: 03 Sep 2009
Posts: 35

Posted: Sun Sep 27, 2009 7:23 am    Post subject:  

mjrich wrote: Quote: So Munin. Will it automatically start recording and graphing the performance data of my machine after I install it? I don't know how to configure it.
No, you'll need to edit /etc/munin/munin*.conf first, create a virtual host (apache in your case) profile for it, and most likely select a few plugins to load.

See any one of the hundreds of Debian/Munin tutorials on the web, and post back if you're still having problems. :)

Thank you too, mjrich, I'll give it a try and let you guys know. :)

Linode is a great place for learning to become a server admin!
Back to top  
 
       Linode Forum Index -> General Discussion
Page 1 of 1