Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Server down
PostPosted: Tue Sep 20, 2011 8:52 am 
Offline
Junior Member

Joined: Tue Jan 12, 2010 6:37 am
Posts: 33
My Linode CPU has maxing out, all sites not responsive. I tried a restart of Apache from inside Virtualmin and received

Failed to re-start service :
Starting web server: apache2(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
failed!

I tried a reboot from the Linode control panel and this fixed it.

Is there any way I can make the server restart when the CPU maxes out, to avoid this happening again?


Top
   
 Post subject:
PostPosted: Tue Sep 20, 2011 12:01 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
Your CPU shouldn't max out in the first place.

The most likely culprit is the MaxClients setting in Apache. The default value is way too high for a Linode. Cut it down to something like 20.


Top
   
 Post subject:
PostPosted: Tue Sep 20, 2011 2:16 pm 
Offline
Senior Member
User avatar

Joined: Fri Dec 11, 2009 7:09 pm
Posts: 168
If it is a memory problem (which will also peg the cpu), you can follow the guide at http://www.linode.com/wiki/index.php/Rebooting_on_OOM

_________________
--
Chris Bryant


Top
   
 Post subject:
PostPosted: Tue Sep 20, 2011 9:33 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
... I should probably check that PO box for SASEs, shouldn't I ...

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group