fpm_children_bury 网站前台访问正常,后台严重迟缓
云主机以前放的是杰奇小说系统的网站,十分快速且正常,其后关闭并迁入discuzx3.1打造的论坛,结果非常奇迹,前台从未出现过502badgateway,但后台打开插件,或执行某些功能时,出现严重迟缓:vi /usr/local/php/logs/php-fpm.log 得以下warning(日志末尾部分):
Apr 05 23:16:41.117876 fpm_children_bury(), line 215: child 7399 (pool default) exited on signal 15 SIGTERM after 50.294062 seconds from startApr 05 23:16:41.117903 fpm_children_bury(), line 215: child 7400 (pool default) exited on signal 15 SIGTERM after 50.293782 seconds from startApr 05 23:16:41.117912 fpm_pctl_exit(), line 81: exiting, bye-bye!
查看探针p.php发现,内存使用率非常高:
参考了网络文章:不见效,以下为其一:
file:///C:\Users\yan\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pnghttp://www.kuqin.com/web/20120220/318312.html
执行netstat -anpo | grep "php-cgi" | wc -l
发现值为7
php-fpm设置apche-like,max-children=70 ,maxspareservers=60,内存2G,这样设置是否有问题? 军哥快来解救,谢谢!
环境是lnmp1.2 按置顶帖 502排查方法排查一下
开慢日志看看 Apr 06 13:40:05.257075 pid 3737 (pooldefault)
script_filename = /home/discuz/admin.php
curl_exec() /home/discuz/source/function/function_filesock.php:67
_dfsockopen() /home/discuz/source/function/function_core.php:201
dfsockopen() /home/discuz/source/function/function_cloudaddons.php:62
cloudaddons_open() /home/discuz/source/function/function_cloudaddons.php:98
cloudaddons_validator() /home/discuz/source/admincp/admincp_plugins.php:633
+++ dump failed
Apr 06 13:40:06.422765 pid 3726 (pooldefault)
script_filename = /home/discuz/admin.php
curl_exec() /home/discuz/source/function/function_filesock.php:67
_dfsockopen() /home/discuz/source/function/function_core.php:201
dfsockopen() /home/discuz/source/function/function_cloudaddons.php:62
cloudaddons_open() /home/discuz/source/function/function_cloudaddons.php:98
cloudaddons_validator() /home/discuz/source/admincp/admincp_plugins.php:633
+++ dump failed
Apr 06 13:40:06.944192 pid 3738 (pooldefault)
script_filename = /home/discuz/admin.php
curl_exec() /home/discuz/source/function/function_filesock.php:67
_dfsockopen() /home/discuz/source/function/function_core.php:201
dfsockopen() /home/discuz/source/function/function_cloudaddons.php:62
cloudaddons_open() /home/discuz/source/function/function_cloudaddons.php:98
cloudaddons_validator() /home/discuz/source/admincp/admincp_plugins.php:633
+++ dump failed
[ 本帖最后由 yanqzh 于 2016-4-6 13:45 编辑 ]
回复 3# 的帖子
日志上看是怎么回事?回复 4# 的帖子
看上面有fsockopen可能是dzx后台调用外站的扩展那些东西的很慢造成的回复 6# 的帖子
貌似调用的是数据库,目前是5.1的,能直接升级到5.3吗? 之前确实有过数据库无法启动的错误,後来修复数据表,就能启动了。但是後台莫名其妙的慢回复 7# 的帖子
可以升级,只要程序上支持5.3就行
页:
[1]