Provide zblog template_ Zblog topic_ Download and customization of wordpress templates

Troubleshooting method and solution for website using pagoda panel server CPU occupying 100%

Tianxing Studio 2023-01-04 19:01 course three hundred and thirty-nine 0 Comments


Tianxing Studio I wrote an article before“ Record: Pagoda Task Manager+AliYunDun+ cpu 100% occupied ”。 Today I feel website Some cards open Pagoda panel At first sight, the good guy's CPU started to account for 100% again:

 Website uses pagoda panel server CPU occupies 100% Troubleshooting methods and solutions Website log CPU occupies 100% pagoda panel Tutorial Page 1

This time, the CPU accounted for 100% of the total, which is different from the last time. In addition, I am too lazy to log in Alibaba Cloud Check the progress, so we used the local method: directly look at the website logs within 100% of the time!

So the website uses pagoda It is recommended that the panel server CPU occupies 100% of the site log. The steps to view the website log on the pagoda panel are as follows:

First log in to the pagoda panel and click the left side navigation bar Open the "/www/wwwlogs/" folder to store the log files.

Find your website domain name Click Open to view the website log.

Ps: The website log files are generally large. The pagoda will load the latest 30M files by default, which is absolutely enough compared with the CPU usage.

The website log file is generally as follows:

 Website uses pagoda panel server CPU occupies 100% Troubleshooting methods and solutions Website log CPU occupies 100% pagoda panel Tutorial Page 2

Tianxing Studio found two reasons for the CPU accounting for 100% after checking the website logs:

1. The IP address of the crawler class keeps crawling the tag page. The log is as follows:

 Website uses pagoda panel server CPU occupies 100% Troubleshooting methods and solutions Website log CPU occupies 100% pagoda panel Tutorial Page 3

2. Some websites directly refer to the static resources of my website [font icons, css, pictures, etc.], and the logs are as follows:

 Website uses pagoda panel server CPU occupies 100% Troubleshooting methods and solutions Website log CPU occupies 100% pagoda panel Tutorial Page 4

100% servers Solution:

The first is to pull the IP blacklist after finding the collection crawler, and the pagoda panel pulls the IP blacklist. Operation steps: open the pagoda software store - third-party applications, find the "Nginx free firewall" installation, and then find the IP blacklist function in the plug-in settings - global settings after enabling it.


The second kind of static resources directly referenced by other websites can enable the anti-theft chain function. The operation steps of the pagoda panel are as follows: Open website management - click settings, click the anti-theft chain, and then enable the anti-theft chain, as shown in the following figure:

 Website uses pagoda panel server CPU occupies 100% Troubleshooting methods and solutions Website log CPU occupies 100% pagoda panel Tutorial Page 5

After doing the relative steps and observing for several hours, the proportion of server CPU has been smoothly reduced to about 20%. If you also encounter problems similar to mine, you can try to operate according to the above scheme and then observe whether the comparison can solve the problem.

Summary:

To solve server problems, you can first look at process monitoring. Pagoda process monitoring is charged. Alibaba Cloud Tencent Cloud Such large factories will provide free process monitoring services, which can be viewed directly on the idc website.

Second, the website log is a more direct solution, which can reflect various problems more intuitively.


Can't find a tutorial that can solve your problem?

You can try to search or ask questions directly online. We also provide charging technical support. If you need it, you can contact us online.

Online questions Online Service

Cancel Reply welcome you Comment:

 Please fill in the verification code
  • Latest articles
  • Hot article ranking
  • Most Comments
Label aggregation
  • Sign in
  • Registered account Forgot your password?
  • register
  • Already have an account? Direct login Forgot your password?
  • Social account login