VPS侦探论坛

 找回密码
 注册
查看: 7446|回复: 6

wordpress的PHP-fpm进程的cpu占用过高

[复制链接]
发表于 2015-6-10 10:53:31 | 显示全部楼层 |阅读模式

新装的lnmp,机器配置,单核处理器,1G内存,40G硬盘,新装的最新版wordpress,刷新网页时候或者后台某项设置更新时候,PHP-fpm进程的CPU占用就会飙至90%+,怎么解决呢?开启网站的日志,发现很多IP访问,但是统计代码里面却没IP。

下面是10点整,这一分钟的访问记录
123.151.155.144 - - [10/Jun/2015:10:00:07 +0800] "GET / HTTP/1.1" 403 162 "-" "nws" -
123.151.155.144 - - [10/Jun/2015:10:00:07 +0800] "\x00" 400 166 "-" "-" -
183.232.83.65 - - [10/Jun/2015:10:00:10 +0800] "GET / HTTP/1.1" 403 162 "-" "nws" -
183.232.83.65 - - [10/Jun/2015:10:00:10 +0800] "\x00" 400 166 "-" "-" -
27.221.23.210 - - [10/Jun/2015:10:00:11 +0800] "GET / HTTP/1.1" 403 162 "-" "nws" -
27.221.23.210 - - [10/Jun/2015:10:00:11 +0800] "\x00" 400 166 "-" "-" -
111.4.118.192 - - [10/Jun/2015:10:00:14 +0800] "GET / HTTP/1.1" 403 162 "-" "nws" -
111.4.118.192 - - [10/Jun/2015:10:00:14 +0800] "\x00" 400 166 "-" "-" -
119.147.6.32 - - [10/Jun/2015:10:00:14 +0800] "GET / HTTP/1.1" 403 162 "-" "-" -
171.111.157.33 - - [10/Jun/2015:10:00:15 +0800] "GET / HTTP/1.1" 403 162 "-" "nws" -
111.8.6.198 - - [10/Jun/2015:10:00:15 +0800] "GET / HTTP/1.1" 403 162 "-" "nws" -
171.111.157.33 - - [10/Jun/2015:10:00:15 +0800] "\x00" 400 166 "-" "-" -
111.8.6.198 - - [10/Jun/2015:10:00:15 +0800] "\x00" 400 166 "-" "-" -
113.17.172.24 - - [10/Jun/2015:10:00:16 +0800] "GET / HTTP/1.1" 403 162 "-" "nws" -
221.236.21.153 - - [10/Jun/2015:10:00:16 +0800] "GET / HTTP/1.1" 403 162 "-" "nws" -
113.17.172.24 - - [10/Jun/2015:10:00:16 +0800] "\x00" 400 166 "-" "-" -
221.236.21.153 - - [10/Jun/2015:10:00:16 +0800] "\x00" 400 166 "-" "-" -
171.111.157.36 - - [10/Jun/2015:10:00:16 +0800] "GET / HTTP/1.1" 403 162 "-" "nws" -
171.111.157.36 - - [10/Jun/2015:10:00:16 +0800] "\x00" 400 166 "-" "-" -
112.90.51.166 - - [10/Jun/2015:10:00:17 +0800] "GET / HTTP/1.1" 403 162 "-" "nws" -
112.90.51.166 - - [10/Jun/2015:10:00:17 +0800] "\x00" 400 166 "-" "-" -
111.1.57.64 - - [10/Jun/2015:10:00:21 +0800] "GET / HTTP/1.1" 403 162 "-" "nws" -
111.1.57.64 - - [10/Jun/2015:10:00:21 +0800] "\x00" 400 166 "-" "-" -
219.146.241.21 - - [10/Jun/2015:10:00:21 +0800] "GET / HTTP/1.1" 403 162 "-" "nws" -
219.146.241.21 - - [10/Jun/2015:10:00:21 +0800] "\x00" 400 166 "-" "-" -
58.216.25.24 - - [10/Jun/2015:10:00:21 +0800] "GET / HTTP/1.1" 403 162 "-" "nws" -
58.216.25.24 - - [10/Jun/2015:10:00:21 +0800] "\x00" 400 166 "-" "-" -
58.216.25.26 - - [10/Jun/2015:10:00:21 +0800] "GET / HTTP/1.1" 403 162 "-" "nws" -
58.216.25.26 - - [10/Jun/2015:10:00:21 +0800] "\x00" 400 166 "-" "-" -
27.221.23.215 - - [10/Jun/2015:10:00:21 +0800] "GET / HTTP/1.1" 403 162 "-" "nws" -
27.221.23.215 - - [10/Jun/2015:10:00:21 +0800] "\x00" 400 166 "-" "-" -
58.216.25.23 - - [10/Jun/2015:10:00:21 +0800] "GET / HTTP/1.1" 403 162 "-" "nws" -
58.216.25.23 - - [10/Jun/2015:10:00:22 +0800] "\x00" 400 166 "-" "-" -
27.221.23.214 - - [10/Jun/2015:10:00:22 +0800] "GET / HTTP/1.1" 403 162 "-" "nws" -
27.221.23.214 - - [10/Jun/2015:10:00:22 +0800] "\x00" 400 166 "-" "-" -
221.236.21.146 - - [10/Jun/2015:10:00:22 +0800] "GET / HTTP/1.1" 403 162 "-" "nws" -
221.236.21.146 - - [10/Jun/2015:10:00:22 +0800] "\x00" 400 166 "-" "-" -
113.17.172.26 - - [10/Jun/2015:10:00:23 +0800] "GET / HTTP/1.1" 403 162 "-" "nws" -
113.17.172.26 - - [10/Jun/2015:10:00:23 +0800] "\x00" 400 166 "-" "-" -
27.221.23.210 - - [10/Jun/2015:10:00:26 +0800] "GET / HTTP/1.1" 403 162 "-" "curl/7.15.1 (x86_64-suse-linux) libcurl/7.15.1 OpenSSL/0.9.8a zlib/1.2.3 libidn/0.6.0" 120.204.205.146
119.147.6.32 - - [10/Jun/2015:10:00:49 +0800] "GET / HTTP/1.1" 403 162 "-" "-" -
119.147.227.161 - - [10/Jun/2015:10:00:56 +0800] "GET / HTTP/1.1" 403 162 "-" "" 111.161.51.142
119.147.227.161 - - [10/Jun/2015:10:00:56 +0800] "GET / HTTP/1.1" 403 162 "-" "" 111.161.51.142
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2015-6-10 17:23:50 | 显示全部楼层


我的是访问vnstat无响应,php-fpm占用100%,关闭浏览器恢复正常
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2015-6-10 21:05:56 | 显示全部楼层

日志里那是写网上专门来扫描的日志

wordpress本身就是比较耗资源
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2015-6-11 11:05:37 | 显示全部楼层

回复 2# 的帖子




我的是关闭浏览器依然100%  ,需要等一会 负载降下去
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2015-6-11 14:51:52 | 显示全部楼层

你可以自己去了解一下linux负载的具体说明,负载不是实时的
分别是1分钟、5分钟、15分钟内系统的平均负荷

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2015-6-13 16:05:43 | 显示全部楼层

回复 5# 的帖子


嗯,一直有看的,当页面连续刷新时候, 用top命令查看,会发现CPU90%+
请教下军哥,LNMPA已经停止下载了么?
发表于 2015-6-13 21:12:47 | 显示全部楼层

回复 6# 的帖子


都是用一个脚本安装,注意安装参数改成lnmpa就行了
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-16 18:01 , Processed in 0.027570 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表