0

We are having a problem in witch from time to time our apache2 server stops working. When I try to restart it I need to first kill several existing running instances of apache.

Like this:

sudo service apache2 restart
pidof apache2
sudo kill -9 <pid>
sudo service apache2 start

When I run pidof command I can get up to 12 ids. I understand that this is perfectly normal. However there might be a better solution for what we are trying to accomplish.

We are an commerce platform for the Peruvian market. Think of it as a small version of Shopify. We have over 200 stores running the same application. Each store runs under its own domain and SSL certificate, so we have created several virtual host. Although all of them points to the same directory.

Most of this sites have very little traffic and our application runs smoothly most of the time. However if a store have a peek of traffic, CPU usage grows up to 100% and the server crashes. See the attached image.

How could I prevent the server from crashing? Do you think using a load balancer might help? Is there a better solution than running several virtual host? What is your recommended setup for Multi-Processing Module?

Thanks

0 Answers0