nginx+ PHP -fpm 出现"zend_mm_heap corrupted"怎么解决?

2019-08-27 15:33:06 +08:00
 dyllen

php 版本是 5.6.28

有两个 api 接口会出现 fpm 异常退出的情况

fpm 的日志:

WARNING: [pool www] child 9443 exited with code 1 after 39.551266 seconds from start

php 代码层次记录不到这种错误,他就是进程突然退出了,我跟踪进程后发现是出现了提示“ zend_mm_heap corrupted ”之后,进程就退出了。

部署在上面的其他网站没问题,同一个网站也就这两个接口有这样的问题。

搜索了好久,试了各种设置,都没用,怎么搞?有没有遇到相同问题的?

服务器是公司测试用的,没用权限更改东西。

3746 次点击
所在节点    PHP
3 条回复
oneonesv
2019-08-27 15:53:08 +08:00
https://stackoverflow.com/questions/2247977/what-does-zend-mm-heap-corrupted-mean

If you have opcache loaded, disable optimizations
I'm not picking on opcache, it's great, but some of it's optimizations have been known to cause faults.
If that doesn't work, even though your code may be slower, try unloading opcache first.
If any of this changes or fixes the problem, update the bug report you made.

Disable all unnecessary extensions at once.
Begin to enable all your extensions individually, thoroughly testing after each configuration change.
If you find the problem extension, update your bug report with more info.
qq1340691923
2019-08-27 16:00:29 +08:00
换语言
dyllen
2019-08-27 16:24:51 +08:00
@oneonesv 这个答案我看了,试过了。服务器不是我控制不了,有些是试不了的。
看来这个问题是同样的错误,每个人可能都是不一样的情况导致的。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/595554

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX