cnnewin 发表于 2024-11-25 22:03:19

【待反馈】CPU使用率100%

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:


面板:9.2.0Nginx 1.24.0
MySQL 8.4.0
PHP- 8.2.24


系统版本:
Debian GNU/Linux 12 (bookworm) x86_64(Py3.7.16)
8xCPU 内存x24G
问题描述:
运行5个wrodpress站点,流量特少,CPU使用率经常100%和负载状态变红,找不到问题,请大师帮助看看分析一下原因。
相关截图(日志、错误):



日志
WARNING: child 25035, script '/www/wwwroot/******.com/wp-login.php' (request: "GET /wp-login.php") executing too slow (30.082026 sec), logging
WARNING: child 24750, script '/www/wwwroot/****.com/wp-login.php' (request: "GET /wp-login.php?redirect_to=https://www.****.com/123/") executing too slow (31.160729 sec), logging
WARNING: child 24749, script '/www/wwwroot/*****.com/index.php' (request: "GET /index.php") executing too slow (33.494993 sec), logging
NOTICE: child 24750 stopped for tracing
NOTICE: about to trace 24750
NOTICE: finished trace of 24750
NOTICE: child 24749 stopped for tracing
NOTICE: about to trace 24749
NOTICE: finished trace of 24749
NOTICE: child 25035 stopped for tracing
NOTICE: about to trace 25035
NOTICE: finished trace of 25035
WARNING: child 24754, script '/www/wwwroot/****.com/index.php' (request: "GET /index.php?product_count=48") executing too slow (33.716577 sec), logging
NOTICE: child 24754 stopped for tracing
NOTICE: about to trace 24754
NOTICE: finished trace of 24754

堡塔运维南一 发表于 2024-11-26 09:47:43

您好,您这种情况重启一下php和nignx,负载和cpu应该就可以降下来
重启之后观察一下你站点使用的php负载状态
如果这里又生成了慢请求,建议您让您公司的开发人员看看慢日志
可能需要优化一下php代码
页: [1]
查看完整版本: 【待反馈】CPU使用率100%