First check the possibility of customer problems:
#Due to excessive website traffic and over one million IP addresses per day, the CPU increased crazily to 100%. A running rate of 100 will cause the server to crash and freeze. After several days of research, we came to a result, that is, the connection is blocked, causing an endless loop of crashes. After each crash, as long as you restart, it will be blocked again in about 2-3 hours. The crash, after analysis by the programmer, may be caused by the traffic exceeding the delay.
So what is the solution to configure frequent CPU alarms when encountering nginxserver:
First of all, you need to determine whether the server configuration is sufficient. This user is using a BGP server. The bandwidth and configuration are sufficient. E5-2650V4*2 32G memory 250G Samsung solid state drive, so It can be determined that there is definitely no problem with the configuration. The problem lies in the system not being optimized and nginx not being debugged. After debugging, the situation has been alleviated to a certain extent.
The above is the detailed content of How to solve nginx server configuration CPU error. For more information, please follow other related articles on the PHP Chinese website!