SSH daemon sleeps

tasticeyes

New Member
Joined
Sep 2, 2011
Messages
6
Hi all

Seeing an issue with one of our servers where the machine "sleeps" or something.

It will be fully connected and functioning as expected. Then if it is left idle for a period, it stops responding; Apache httpd stops serving requests, SSH daemon no longer responds (times out), and nothing else works... Except a ping. The first response to a ping takes AGES to come back (+/- 5 - 10 seconds for a local server), but thereafter, everything goes back to normal. Apache is back, SSH is back, everything is back. No change, other than the ping.

Entries in all files in /var/log don't provide anything useful. In fact, there aren't many log entries at all; just the occasional notice of a cron running.

Any ideas? Or any idea what I can do to troubleshoot?
 

The_Unbeliever

Honorary Master
Joined
Apr 19, 2005
Messages
103,196
What hardware is it running on?

Have you checked in your BIOS/CMOS setup/settings for any sleep functions? If there's, then disable it.
 

The_Unbeliever

Honorary Master
Joined
Apr 19, 2005
Messages
103,196
If you've got a second linux server, set up a cron job to ping it every so often, to keep it alive...
 

tasticeyes

New Member
Joined
Sep 2, 2011
Messages
6
What hardware is it running on?

Have you checked in your BIOS/CMOS setup/settings for any sleep functions? If there's, then disable it.

VPS hosting with Mweb Business. Not sure if I then need to get them involved? Hate dealing with them :(
 

Sinbad

Honorary Master
Joined
Jun 5, 2006
Messages
81,150
Sounds like its set to suspend or power off, with wake-on-LAN enabled.
 

avert

Senior Member
Joined
Jul 13, 2009
Messages
742
make sure you arent out of disk space, make sure that swap space isnt being used

otherwise it sounds more like a problem with the hypervisor mweb are running, probably using some really agressive resource allocation so they can oversell (just like the rest of their products)
 
Last edited:
Top