8739936 发表于 2016-12-9 10:59:40

军哥求助。

军哥您好,我的php-fpm经常挂掉。您能帮我看下吗?我也已经按照这个帖子改了https://bbs.vpser.net/thread-1144-1-1.html
看下面的日志,我什么都没执行,突然就挂了。。

NOTICE: reloading: execvp("/usr/local/php/sbin/php-fpm", {"/usr/local/php/sbin/php-fpm", "--daemonize", "--fpm-config", "/usr/local/php/etc/php-fpm.conf", "--pid", "/usr/local/php/var/run/php-fpm.pid"})
NOTICE: using inherited socket fd=11, "/tmp/php-cgi.sock"
NOTICE: using inherited socket fd=11, "/tmp/php-cgi.sock"
NOTICE: fpm is running, pid 2689
NOTICE: ready to handle connections
NOTICE: Reloading in progress ...
NOTICE: reloading: execvp("/usr/local/php/sbin/php-fpm", {"/usr/local/php/sbin/php-fpm", "--daemonize", "--fpm-config", "/usr/local/php/etc/php-fpm.conf", "--pid", "/usr/local/php/var/run/php-fpm.pid"})
NOTICE: using inherited socket fd=11, "/tmp/php-cgi.sock"
NOTICE: using inherited socket fd=11, "/tmp/php-cgi.sock"
NOTICE: fpm is running, pid 2709
NOTICE: ready to handle connections
NOTICE: Reloading in progress ...
NOTICE: reloading: execvp("/usr/local/php/sbin/php-fpm", {"/usr/local/php/sbin/php-fpm", "--daemonize", "--fpm-config", "/usr/local/php/etc/php-fpm.conf", "--pid", "/usr/local/php/var/run/php-fpm.pid"})
NOTICE: using inherited socket fd=11, "/tmp/php-cgi.sock"
NOTICE: using inherited socket fd=11, "/tmp/php-cgi.sock"
NOTICE: fpm is running, pid 2742
NOTICE: ready to handle connections
NOTICE: Reloading in progress ...
NOTICE: reloading: execvp("/usr/local/php/sbin/php-fpm", {"/usr/local/php/sbin/php-fpm", "--daemonize", "--fpm-config", "/usr/local/php/etc/php-fpm.conf", "--pid", "/usr/local/php/var/run/php-fpm.pid"})
NOTICE: using inherited socket fd=11, "/tmp/php-cgi.sock"
NOTICE: using inherited socket fd=11, "/tmp/php-cgi.sock"
NOTICE: fpm is running, pid 2761
NOTICE: ready to handle connections
WARNING: child 2762 exited on signal 11 (SIGSEGV) after 565.808542 seconds from start
NOTICE: child 2838 started
WARNING: child 2763 exited on signal 11 (SIGSEGV) after 568.434760 seconds from start
NOTICE: child 2839 started
WARNING: child 2838 exited on signal 11 (SIGSEGV) after 4.828715 seconds from start
NOTICE: child 2841 started
WARNING: child 2839 exited on signal 11 (SIGSEGV) after 6.032603 seconds from start
NOTICE: child 2842 started
WARNING: child 2841 exited on signal 11 (SIGSEGV) after 6.354804 seconds from start
NOTICE: child 2843 started
WARNING: child 2842 exited on signal 11 (SIGSEGV) after 12.368027 seconds from start
NOTICE: child 2845 started
WARNING: child 2843 exited on signal 11 (SIGSEGV) after 13.977977 seconds from start
NOTICE: child 2846 started
WARNING: child 2845 exited on signal 11 (SIGSEGV) after 8.095011 seconds from start
NOTICE: child 2848 started
WARNING: child 2846 exited on signal 11 (SIGSEGV) after 6.018847 seconds from start
NOTICE: child 2849 started
WARNING: child 2848 exited on signal 11 (SIGSEGV) after 5.602735 seconds from start
NOTICE: child 2850 started
WARNING: child 2849 exited on signal 11 (SIGSEGV) after 3.979909 seconds from start
NOTICE: child 2851 started
WARNING: child 2850 exited on signal 11 (SIGSEGV) after 10.572823 seconds from start
NOTICE: child 2855 started
NOTICE: Reloading in progress ...
NOTICE: reloading: execvp("/usr/local/php/sbin/php-fpm", {"/usr/local/php/sbin/php-fpm", "--daemonize", "--fpm-config", "/usr/local/php/etc/php-fpm.conf", "--pid", "/usr/local/php/var/run/php-fpm.pid"})
NOTICE: using inherited socket fd=11, "/tmp/php-cgi.sock"
NOTICE: using inherited socket fd=11, "/tmp/php-cgi.sock"
NOTICE: fpm is running, pid 2861
NOTICE: ready to handle connections




我开启了慢日志
session_start()报错是什么原因呢?

pid 2052
script_filename = /home/wwwroot/mumaren.yichangrencai.cn/index.php
session_start() /home/wwwroot/mumaren.yichangrencai.cn/app/core/MY_Controller.php:34
__construct() /home/wwwroot/mumaren.yichangrencai.cn/app/controllers/goods.php:5
__construct() /home/wwwroot/mumaren.yichangrencai.cn/system/core/CodeIgniter.php:308
+++ dump failed

licess 发表于 2016-12-9 12:45:19

慢日志定位到具体文件,其他就需要自己排查了

要对应502的时间和慢日志的时间

8739936 发表于 2016-12-9 13:49:37

session_start()打开很慢。这个怎样解决啊、我在网上搜解决办法

修改 php.ini 里 session的存放路径,改了网站的session就用不了了 。

8739936 发表于 2016-12-9 13:57:30

找到原因了。。。感谢军哥
页: [1]
查看完整版本: 军哥求助。