Last update at :2024-06-25,Edit by888u
Snail saw a message from a netizen, mentioning that the 1G1M configuration server he purchased from a certain merchant during the 618 promotion a few days ago was slow. Then he used the statistics from the Pagoda Panel to see that the CPU was always above 80%. So I was worried that the website might have been hacked. So Snail asked him how many visits his website received, and he told me that it was about 5,000+ IP addresses a day. Everyone should know the crux of the problem after seeing this.
This classmate has an attitude of saving money when he can. The configuration of the 1G1M server does not mean that he cannot build a website. I have also seen some netizens have no problem with thousands of IPs per day, but this classmate’s website has a lot of pictures. And it is local, without static separation. The picture itself takes up a lot of resources, and the number of visits to his website is not low, so it is obvious that such a problem occurs. So I asked him to upgrade the configuration to about 4G3M, and then I saw that the server was running stably and the speed was much faster than before. We generally see that it is very common when the cloud server CPU is 100% occupied.
First, the configuration is too low
As Snail mentioned above, if our server configuration is too low and your project has a large number of visits, it is normal for it to be slow or take up a lot of resources. If we detect no other problems and the traffic of your website is too high, don’t treat yourself so badly and treat your website a little better. Improve hardware configuration, including bandwidth.
Second, safety issues
Security issues are also relatively common. I met a lot of netizens like this a few days ago. The new website is only a month old, but there are many files constantly being generated in the root directory of his website. It should be caused by a mining virus being implanted in the server. The website can be opened normally, but of course it is a bit slow. Monitoring shows that the CPU usage is relatively high. Therefore, we need to regularly detect and troubleshoot the security of our websites and servers. Of course, regular data backup is also critical.
Third, software compatibility issues
The current PHP version has reached 7.4. If we are still using a lower version or some incompatible versions, it may also be a factor that causes the CPU load to be too high. We need to check the software compatibility of the server and upgrade the software version regularly and appropriately for the project. It is recommended that the website not install too many plug-ins and unnecessary software, and operate the website easily.
What should I do if the CPU usage is too high? We will investigate this one by one and solve it. For example, for compatibility issues, we configure the software version suitable for the project and server. Regularly upgrade the program to the latest version, with high compatibility and high security. If the project requires higher configurations, we will be a little more careful with our website and not be too picky.
Especially for the problem of high CPU usage caused by external security, we must pay attention to backing up data regularly to ensure the security of data backup. and monitoring server security and software security.
Recommended site searches: virtual host, Wanwang registered domain name, domain name check, foreign server, high defense US server, multi-IP station group server, domain name registration service, how much does server defense cost, free cn domain name registration, domain name query network ,
发表评论