Question

After a while unless I restart Apache all my websites go down? (Ubuntu 14.04)

Hi,

I have set up a server on 1gb Ram/1 CPU and it has 4 sites, 2 of them are staging sites, one is a blog and one is a restaurant. All the sites have literally minimal traffic no more then 5 visits a day however I find that after a day or so they all become unresponsive and I have to restart apache2 in my server for them to all be back up again.

Upon further inspection I have seen in the error logs the following things:

[Wed May 25 13:58:15.412099 2016] [core:error] [pid 1335] AH00046: child process 1790 still did not exit, sending a SIGKILL [Wed May 25 13:58:15.412106 2016] [core:error] [pid 1335] AH00046: child process 1793 still did not exit, sending a SIGKILL [Wed May 25 13:58:15.412122 2016] [core:error] [pid 1335] AH00046: child process 1811 still did not exit, sending a SIGKILL [Wed May 25 13:58:15.412129 2016] [core:error] [pid 1335] AH00046: child process 1814 still did not exit, sending a SIGKILL [Wed May 25 13:58:15.412137 2016] [core:error] [pid 1335] AH00046: child process 1833 still did not exit, sending a SIGKILL [Wed May 25 13:58:15.412144 2016] [core:error] [pid 1335] AH00046: child process 1834 still did not exit, sending a SIGKILL [Wed May 25 13:58:15.412165 2016] [core:error] [pid 1335] AH00046: child process 1835 still did not exit, sending a SIGKILL [Wed May 25 13:58:16.594681 2016] [core:error] [pid 1335] AH00047: could not make child process 1339 exit, attempting to continue anyway [Wed May 25 13:58:16.594730 2016] [core:error] [pid 1335] AH00047: could not make child process 1340 exit, attempting to continue anyway [Wed May 25 13:58:16.594755 2016] [core:error] [pid 1335] AH00047: could not make child process 1341 exit, attempting to continue anyway [Wed May 25 13:58:16.594762 2016] [core:error] [pid 1335] AH00047: could not make child process 1525 exit, attempting to continue anyway [Wed May 25 13:58:16.594768 2016] [core:error] [pid 1335] AH00047: could not make child process 1495 exit, attempting to continue anyway [Wed May 25 13:58:16.594774 2016] [core:error] [pid 1335] AH00047: could not make child process 1401 exit, attempting to continue anyway [Wed May 25 13:58:16.594780 2016] [core:error] [pid 1335] AH00047: could not make child process 1402 exit, attempting to continue anyway [Wed May 25 13:58:16.594786 2016] [core:error] [pid 1335] AH00047: could not make child process 1422 exit, attempting to continue anyway [Wed May 25 13:58:16.594792 2016] [core:error] [pid 1335] AH00047: could not make child process 1423 exit, attempting to continue anyway [Wed May 25 13:58:16.594798 2016] [core:error] [pid 1335] AH00047: could not make child process 1425 exit, attempting to continue anyway [Wed May 25 13:58:16.594804 2016] [core:error] [pid 1335] AH00047: could not make child process 1611 exit, attempting to continue anyway [Wed May 25 13:58:16.594810 2016] [core:error] [pid 1335] AH00047: could not make child process 1429 exit, attempting to continue anyway [Wed May 25 13:58:16.594816 2016] [core:error] [pid 1335] AH00047: could not make child process 1430 exit, attempting to continue anyway [Wed May 25 13:58:16.594822 2016] [core:error] [pid 1335] AH00047: could not make child process 1432 exit, attempting to continue anyway [Wed May 25 13:58:16.594828 2016] [core:error] [pid 1335] AH00047: could not make child process 1433 exit, attempting to continue anyway [Wed May 25 13:58:16.594834 2016] [core:error] [pid 1335] AH00047: could not make child process 1489 exit, attempting to continue anyway [Wed May 25 13:58:16.594839 2016] [core:error] [pid 1335] AH00047: could not make child process 1526 exit, attempting to continue anyway [Wed May 25 13:58:16.594845 2016] [core:error] [pid 1335] AH00047: could not make child process 1451 exit, attempting to continue anyway [Wed May 25 13:58:16.594851 2016] [core:error] [pid 1335] AH00047: could not make child process 1506 exit, attempting to continue anyway [Wed May 25 13:58:16.594857 2016] [core:error] [pid 1335] AH00047: could not make child process 1454 exit, attempting to continue anyway [Wed May 25 13:58:16.594863 2016] [core:error] [pid 1335] AH00047: could not make child process 1455 exit, attempting to continue anyway [Wed May 25 13:58:16.594869 2016] [core:error] [pid 1335] AH00047: could not make child process 1456 exit, attempting to continue anyway [Wed May 25 13:58:16.594875 2016] [core:error] [pid 1335] AH00047: could not make child process 1457 exit, attempting to continue anyway [Wed May 25 13:58:16.594881 2016] [core:error] [pid 1335] AH00047: could not make child process 1458 exit, attempting to continue anyway [Wed May 25 13:58:16.594909 2016] [core:error] [pid 1335] AH00047: could not make child process 1460 exit, attempting to continue anyway [Wed May 25 13:58:16.594918 2016] [core:error] [pid 1335] AH00047: could not make child process 1461 exit, attempting to continue anyway [Wed May 25 13:58:16.594924 2016] [core:error] [pid 1335] AH00047: could not make child process 1463 exit, attempting to continue anyway [Wed May 25 13:58:16.594930 2016] [core:error] [pid 1335] AH00047: could not make child process 1464 exit, attempting to continue anyway [Wed May 25 13:58:16.594936 2016] [core:error] [pid 1335] AH00047: could not make child process 1465 exit, attempting to continue anyway [Wed May 25 13:58:16.594950 2016] [core:error] [pid 1335] AH00047: could not make child process 1466 exit, attempting to continue anyway [Wed May 25 13:58:16.594957 2016] [core:error] [pid 1335] AH00047: could not make child process 1494 exit, attempting to continue anyway [Wed May 25 13:58:16.594964 2016] [core:error] [pid 1335] AH00047: could not make child process 1474 exit, attempting to continue anyway [Wed May 25 13:58:16.594981 2016] [core:error] [pid 1335] AH00047: could not make child process 1475 exit, attempting to continue anyway [Wed May 25 13:58:16.594987 2016] [core:error] [pid 1335] AH00047: could not make child process 1476 exit, attempting to continue anyway [Wed May 25 13:58:16.595022 2016] [core:error] [pid 1335] AH00047: could not make child process 1478 exit, attempting to continue anyway [Wed May 25 13:58:16.595031 2016] [core:error] [pid 1335] AH00047: could not make child process 1479 exit, attempting to continue anyway [Wed May 25 13:58:16.595055 2016] [core:error] [pid 1335] AH00047: could not make child process 1577 exit, attempting to continue anyway [Wed May 25 13:58:16.595062 2016] [core:error] [pid 1335] AH00047: could not make child process 1503 exit, attempting to continue anyway [Wed May 25 13:58:16.595082 2016] [core:error] [pid 1335] AH00047: could not make child process 1504 exit, attempting to continue anyway [Wed May 25 13:58:16.595089 2016] [core:error] [pid 1335] AH00047: could not make child process 1505 exit, attempting to continue anyway [Wed May 25 13:58:16.595095 2016] [core:error] [pid 1335] AH00047: could not make child process 1507 exit, attempting to continue anyway [Wed May 25 13:58:16.595110 2016] [core:error] [pid 1335] AH00047: could not make child process 1513 exit, attempting to continue anyway

I have over 40,000 rows of this and my server has been live for less than 1.5 weeks. Any help to stop this as I can’t even run 1 website of this server as it stands would be hugely appreciated.

Regards, Muna

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This often means that apache has reached it’s MaxClients value and cannot create more. The most common reason for this to occur (aside from a massive flood of incoming traffic) is that the KeepAlive and KeepAliveTimeout settings in apache are tuned in such a way that apache is leaving client connections open after a request for long enough that it runs out of available client slots. Tuning these values can help correct this issue. Setting a low timeout value or disabling keepalive are recommended.

A quick search found this guide that covers these settings and how to tune them.