Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/haskell/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Nginx PHP5-FPM坏网关502_Nginx_Apc_Php - Fatal编程技术网

Nginx PHP5-FPM坏网关502

Nginx PHP5-FPM坏网关502,nginx,apc,php,Nginx,Apc,Php,我实现了一个新的php类,它将PDF文档合并到一个文件中。在我的dev本地服务器上,一切正常。将其推送到生产服务器后,我遇到了严重的网关错误 /var/log/php5-fpm.log: 4-Mär-2014 11:20:54] WARNING: [pool www] child 17386 exited on signal 11 (SIGSEGV - core dumped) after 10.380074 seconds from start /var/log/nginx/example

我实现了一个新的php类,它将PDF文档合并到一个文件中。在我的dev本地服务器上,一切正常。将其推送到生产服务器后,我遇到了严重的网关错误

/var/log/php5-fpm.log:

4-Mär-2014 11:20:54] WARNING: [pool www] child 17386 exited on signal 11 (SIGSEGV - core dumped) after 10.380074 seconds from start

/var/log/nginx/example.com.error.log:

2014/03/24 11:58:25 [debug] 18761#0: *613 recv: fd:7 -1 of 4096
2014/03/24 11:58:25 [error] 18761#0: *613 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 79.200.179.25, server: example.com,  request: "GET /documents/pdf_generator/140183/en HTTP/1.1", upstream: "fastcgi://unix:/tmp/php5-fpm.sock:", host: "example.com", referrer: "http://booker.visioncode.de/documents/overview"
2014/03/24 11:58:25 [debug] 18761#0: *613 http next upstream, 2
2014/03/24 11:58:25 [debug] 18761#0: *613 free rr peer 1 4
2014/03/24 11:58:25 [debug] 18761#0: *613 finalize http upstream request: 502
2014/03/24 11:58:25 [debug] 18761#0: *613 finalize http fastcgi request
2014/03/24 11:58:25 [debug] 18761#0: *613 close http upstream connection: 7
2014/03/24 11:58:25 [debug] 18761#0: *613 free: 00000000017204E0, unused: 48
2014/03/24 11:58:25 [debug] 18761#0: *613 event timer del: 7: 1395659005493
2014/03/24 11:58:25 [debug] 18761#0: *613 reusable connection: 0
2014/03/24 11:58:25 [debug] 18761#0: *613 http finalize request: 502, "/index.php?/documents/pdf_generator/140183/en" a:1, c:1
2014/03/24 11:58:25 [debug] 18761#0: *613 http special response: 502, "/index.php?/documents/pdf_generator/140183/en"
2014/03/24 11:58:25 [debug] 18761#0: *613 HTTP/1.1 502 Bad Gateway
我在谷歌上搜索了大约3个小时,修改了很多内存和超时设置,但仍然是相同的错误。我将所有版本更新为在我的dev本地计算机上运行的版本-没有更改

但是当I/etc/init.d/php5-fpm重新加载时,我总是可以访问脚本一次,然后生成PDF,并且没有错误输出。如果我再次尝试调用pdf生成器,它将返回坏网关


可能有什么问题?

这是php5 fpm日志文件中唯一的一行吗?您能将php5 fpm配置为可能记录更多的日志吗?如果我触发错误,这是唯一的输出,但是我已经打开了调试。。我应该如何设置它?[24-Mär-2014 12:34:45]警告:[游泳池www]child 19410在信号11 SIGSEGV下退出-从开始到1379.308037秒后堆芯倾倒[24-Mär-2014 12:34:45]通知:[游泳池www]child 20529开始好的,谢谢。我认为这是无关的,因为你的问题显示了3月4日的日志。啊,你是对的。。相同的错误,但此时有任何其他原因;你知道这个错误吗?我想这一定与内存/会话限制有关,因为我可以在重新加载php5 fpm守护进程后执行一次脚本。。如果我触发apc_清除_缓存;在每次执行之前,我可以毫无问题地提交它。因此,问题在于APC。任何想法哪种设置会导致此问题????APC版本3.1.13,PHP5.4.26