Server down

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?

3 Replies

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.

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/RebootingonOOM

… I should probably check that PO box for SASEs, shouldn't I …

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct