Pagoda shows 100% load 100% cpu solution

Because I turned on the eye protection, the screenshot may be a little yellow, don't mind.

show the situation

When I unintentionally opened my own website, it loaded very slowly. I have set up a CDN, and it is not right that it is very slow. So I started to look into the pagoda.

It's no wonder that the CPU is fully loaded and fully loaded as soon as you enter the bag!

 

My website uses two CDNs, Tencent Cloud and Baidu Cloud, one for the website and one for cos object storage.

So I first asked Tencent Cloud. After top, the following figure is obtained

 It can be seen that there are many php threads running and occupying a lot of cpu. My server is not very big, which makes my server worse. After trying to kill the thread, it didn't work.

按k 输入pid 回车键就可以了

The customer service will ask the person in charge of the CDN for a while, and then ask the person in charge of the server. The solution from the beginning to the end is to kill the thread and upgrade the server.

I understand that relying on others is worse than relying on yourself.

Solution

I've had this problem before, and I don't know how to fix it. This time I restarted the server and it still didn't work. So I'm wondering if someone is attacking.

I found the ip page with the most query visits in the cdn. There are more than 200,000 requests here,

This time I finally found the source.

 The access traffic usage is too high, no wonder the server can't bear it

Overseas traffic here accounts for the majority,        

 

So I inquired about its access ip

 

 Sure enough, finally open the cdn anti-leech, find the ip blacklist and enter the ip, the server will return to normal after a while.

Guess you like

Origin blog.csdn.net/qq_43079386/article/details/126797324