henry_li 发表于 2015-5-3 02:49:50

多个PHP-FPM进程占用CPU90%以上,怎么办

多个PHP-FPM进程占用CPU90%以上,导致网站太慢了,这个怎么处理啊,麻烦军歌,帮忙解释一下。

通过查看php日志/usr/local/php/var/log/php-fpm.log,有如下警告信息:
PS:不只是category.php文件,并且这个程序早就不在了,目前的程序里面也没有引用过这个文件。

WARNING: child 887 said into stderr: "ERROR: Unable to open primary script: /home/wwwroot/www.xxxx.com/category.php (No such file or directory)"
WARNING: child 894 said into stderr: "ERROR: Unable to open primary script: /home/wwwroot/www.xxxx.com/category.php (No such file or directory)"
WARNING: child 893 said into stderr: "ERROR: Unable to open primary script: /home/wwwroot/www.xxxx.com/category.php (No such file or directory)"
WARNING: child 880 said into stderr: "ERROR: Unable to open primary script: /home/wwwroot/www.xxxx.com/category.php (No such file or directory)"
WARNING: child 1348 said into stderr: "ERROR: Unable to open primary script: /home/wwwroot/www.xxxx.com/category.php (No such file or directory)"
WARNING: child 889 said into stderr: "ERROR: Unable to open primary script: /home/wwwroot/www.xxxx.com/category.php (No such file or directory)"
WARNING: child 894 said into stderr: "ERROR: Unable to open primary script: /home/wwwroot/www.xxxx.com/category.php (No such file or directory)"
WARNING: child 888 said into stderr: "ERROR: Unable to open primary script: /home/wwwroot/www.xxxx.com/category.php (No such file or directory)"
WARNING: child 880 said into stderr: "ERROR: Unable to open primary script: /home/wwwroot/www.xxxx.com/category.php (No such file or directory)"
WARNING: child 891 said into stderr: "ERROR: Unable to open primary script: /home/wwwroot/www.xxxx.com/category.php (No such file or directory)"
WARNING: child 882 said into stderr: "ERROR: Unable to open primary script: /home/wwwroot/www.xxxx.com/category.php (No such file or directory)"
WARNING: child 893 said into stderr: "ERROR: Unable to open primary script: /home/wwwroot/www.xxxx.com/category.php (No such file or directory)"

licess 发表于 2015-5-3 19:47:35

这个日志里只有提示的文件不存在的信息

你可以按置顶帖开慢日志看看
页: [1]
查看完整版本: 多个PHP-FPM进程占用CPU90%以上,怎么办