wordpress 网站超载 - Apache 进程过多

wordpress 网站超载 - Apache 进程过多

我的网站有时会超载。我注意到 Apache 进程太多,导致网站冻结。我们的流量不至于导致这种情况。那时我所能做的就是重启服务器。

尝试调试问题时,我从 mod_status 中得到此信息。在某些时候,我看到太多没有 PID 的进程处于“打开插槽但没有当前进程”状态,大约有 75 个:

Srv PID Acc M   CPU SS  Req Conn    Child   Slot    Client  Protocol    VHost   Request
0-0 -   0/0/18  .   12.08   314 0   0.0 0.00    0.12    ::1 http/1.1    any.com:80  OPTIONS * HTTP/1.0
1-0 -   0/0/16  .   6.63    286 0   0.0 0.00    0.08    ::1 http/1.1    any.com:80  OPTIONS * HTTP/1.0
2-0 20533   0/34/34 _   45.02   7   0   0.0 0.29    0.29    213.140.194.20  http/1.1    any.com:80  GET /server-status/?refresh=5 HTTP/1.1
3-0 -   0/0/14  .   17.98   320 0   0.0 0.00    0.07    ::1 http/1.1    any.com:80  OPTIONS * HTTP/1.0
4-0 -   0/0/17  .   5.40    307 0   0.0 0.00    0.06    ::1 http/1.1    any.com:80  OPTIONS * HTTP/1.0
5-0 -   0/0/17  .   6.91    306 0   0.0 0.00    0.06    ::1 http/1.1    any.com:80  OPTIONS * HTTP/1.0
6-0 -   0/0/18  .   17.41   319 0   0.0 0.00    0.11    ::1 http/1.1    any.com:80  OPTIONS * HTTP/1.0
7-0 -   0/0/21  .   13.20   283 0   0.0 0.00    0.09    ::1 http/1.1    any.com:80  OPTIONS * HTTP/1.0
8-0 -   0/0/16  .   6.74    281 0   0.0 0.00    0.07    ::1 http/1.1    any.com:80  OPTIONS * HTTP/1.0
9-0 -   0/0/17  .   7.34    308 0   0.0 0.00    0.08    ::1 http/1.1    any.com:80  OPTIONS * HTTP/1.0
10-0    -   0/0/9   .   1.41    296 0   0.0 0.00    0.03    ::1 http/1.1    any.com:80  OPTIONS * HTTP/1.0
11-0    -   0/0/2   .   0.00    316 0   0.0 0.00    0.00    ::1 http/1.1    any.com:80  OPTIONS * HTTP/1.0
12-0    -   0/0/2   .   0.00    318 0   0.0 0.00    0.00    ::1 http/1.1    any.com:80  OPTIONS * HTTP/1.0
13-0    -   0/0/6   .   0.69    274 0   0.0 0.00    0.41    ::1 http/1.1    any.com:80  OPTIONS * HTTP/1.0
14-0    -   0/0/4   .   1.12    292 0   0.0 0.00    0.02    ::1 http/1.1    any.com:80  OPTIONS * HTTP/1.0

这些都意味着什么?它们会造成过载吗?

相关内容