If the server load is indeed related to high CPU utilization, we can analyze and apply the following corrections:
- As already mentioned, optimizing database queries should be your first task. Some applications often use complex queries to display information on the site. These queries might take a long time to execute and cause a load on the server. Grabbing these queries from the slow query log will be a good idea, and reduce the number of joins and other table manipulations under a single query if possible, as we have already seen.
- If your MySQL is open to the public, block abusive processes. When a website is attacked (such as with DoS, spam, and so on), an unusually high number of connections can load ...