The most common reasons for an increase in constant server load
- Growth in traffic to sites located on the server. With the development of the project and an increase in the number of site visitors, it is recommended to switch to another plan.
- Increase in the volume of processed data. Over time, the database and the number of files on the server can grow, resulting in poor performance. However, it is also recommended to upgrade to a plan with sufficient resources.
- Unoptimized scripts in the site code. Optimization of scripts is done by users.
- Disable caching. With caching disabled, users are more likely to access the database and files on the server, resulting in increased load.
- The presence of malicious code in the files. Hacking a website or infecting files increases the load on the server. You can learn more about how to fix and prevent this problem in this article.
- Bot activity. You can identify unwanted activity of search engines and other bots by analyzing the access logs to the site. If log saving is not configured in the server control panel, you can create a request to technical support to receive access logs for a certain period.
One-time load increase
It is also possible that a single sharp increase in load appears. Main reasons:
- A sharp increase in attendance. This can be caused by the launch of an advertisement or promotion of a resource.
- Carrying out works on the site.
- DDoS attack.
- The action of malware.
- Incorrect work of scripts.
Periodic increase in load
If there are periodic heavy loads on the server, it can be caused by long execution of queries to the database or other account processes. For example, several days. After this process is completed, there is a sharp jump in the load graph for the last day.
It is recommended to use the top and htop utilities to control running processes.
To view the current MySQL queries, run the SQL query:
SHOW FULL PROCESSLIST;
If you still have questions, please create a ticket to technical support.