V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
dyllen
V2EX  ›  PHP

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

  •  
  •   dyllen · 2019-08-27 15:33:06 +08:00 · 3728 次点击
    这是一个创建于 1675 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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 ”之后,进程就退出了。

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

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

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

    3 条回复    2019-08-27 16:24:51 +08:00
    oneonesv
        1
    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
        2
    qq1340691923  
       2019-08-27 16:00:29 +08:00
    换语言
    dyllen
        3
    dyllen  
    OP
       2019-08-27 16:24:51 +08:00
    @oneonesv 这个答案我看了,试过了。服务器不是我控制不了,有些是试不了的。
    看来这个问题是同样的错误,每个人可能都是不一样的情况导致的。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3572 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 04:59 · PVG 12:59 · LAX 21:59 · JFK 00:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.