Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Slow VM with continue to crashes

My web server has countless crashes and I don't know if it's due to traffic. I have increased its resources and still it continues to give alerts and it is very slow.
I would like to know how to rule out if what is happening is due to an attack, malware, etc; or is it due to traffic (which according to GA is not much). And also how to optimize Apache, since according to TOP it is consuming a lot of resources.

Ubuntu 18.04
18 vCPU
124 RAM
300GB HD

<IfModule mpm_prefork_module>
StartServers 5
ServerLimit 1536
MinSpareServers 20
MaxSpareServers 40
MaxRequestWorkers 833
MaxConnectionsPerChild 2000
MaxClients 1536
</IfModule>

0 2 189
2 REPLIES 2

Hi Annariel, Traffic issues can be investigated in load balancer metrics in Cloud Logging. Careful examine of occurrences by response code classes (5XX, 4XX, 3XX, 2XX) per day can highlight attacks. The Linux operating systems Debian and Centos are relatively easy horizontal moves to test a different OS from Ubuntu. Increasing from 124RAM might help too. Good luck; pfrankwicz

OK, thanks. I will try with a load balancer and CDN.