dyllen
V2EX  ›  PHP

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

  •  
  •   dyllen · Aug 27, 2019 · 4334 views
    This topic created in 2473 days ago, the information mentioned may be changed or developed.

    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 replies    2019-08-27 16:24:51 +08:00
    oneonesv
        1
    oneonesv  
       Aug 27, 2019
    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  
       Aug 27, 2019
    换语言
    dyllen
        3
    dyllen  
    OP
       Aug 27, 2019
    @oneonesv 这个答案我看了,试过了。服务器不是我控制不了,有些是试不了的。
    看来这个问题是同样的错误,每个人可能都是不一样的情况导致的。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   919 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 21:00 · PVG 05:00 · LAX 14:00 · JFK 17:00
    ♥ Do have faith in what you're doing.