Fixed: Random memory spikes on a PHP-MySQL website

Fixed: Random memory spikes on a PHP-MySQL website

Web Development
The context & the issue We have observed for some weeks many memory spikes on a client's website, they seemed to happen in a pseudo-random way, mainly during the same 12h period daily. The website is coded in PHP & MySQL on the server side, it is accompanied by a Wordpress blog and an administration panel. Here is how our memory usage graph looked like on cPanel. Spoiler: If you don't want to read the whole article, the culprit was ModSecurity, it was solved once we deactivated it. The step-by-step resolution Seeing the spoiler above, I suggest you start by the end but it's good to do it all as it gives the opportunity to improve the site. Log check Of course I started there, I observed the logs around…
Read More