V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
hheedat
V2EX  ›  PHP

apcu 会莫名突然卡死

  •  
  •   hheedat · Mar 17, 2018 · 3887 views
    This topic created in 2967 days ago, the information mentioned may be changed or developed.

    proxy

    所有请求全部超时了,直到下游超时断开连接;十分一的机器在运行了半个月后出现了这种情况,其他机器正常。在线上使用 apcu 也有一年了,第一次遇到这种问题。

    proxy

    重启了一下 fpm 后恢复了

    proxy

    看慢日志卡在这里:

    [0x00007f33e3d40ed0] apcu_store() /home/xxx/xxx.php
    
    #strace -p 
    
    Process 1519522 attached
    futex(0x7f7a4ea6c094, FUTEX_WAIT, 44874, NULL) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
    --- SIGTERM {si_signo=SIGTERM, si_code=SI_USER, si_pid=349, si_uid=0} ---
    +++ killed by SIGTERM +++
    

    有没有大佬分析一下?

    6 replies    2018-03-19 11:10:24 +08:00
    hheedat
        1
    hheedat  
    OP
       Mar 17, 2018
    JellySherry
        2
    JellySherry  
       Mar 17, 2018
    露珠 你这个分析工具是啥
    mingyun
        3
    mingyun  
       Mar 17, 2018
    同楼上问 什么工具
    jevonszmx
        4
    jevonszmx  
       Mar 18, 2018
    @JellySherry apc 自带的吧
    gouchaoer
        5
    gouchaoer  
       Mar 18, 2018 via Android
    apcu 一直有不稳定的问题,另外 pthread 也不大稳定。。。。最近 nikic 在贡献代码优化 APCU。。。php 的单机缓存非常尴尬,yac 不保证数据安全,apcu 又不稳定
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2712 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 14:30 · PVG 22:30 · LAX 07:30 · JFK 10:30
    ♥ Do have faith in what you're doing.