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

apcu 会莫名突然卡死

  •  
  •   hheedat · 2018-03-17 16:02:17 +08:00 · 3047 次点击
    这是一个创建于 2203 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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 条回复    2018-03-19 11:10:24 +08:00
    hheedat
        1
    hheedat  
    OP
       2018-03-17 16:19:03 +08:00
    JellySherry
        2
    JellySherry  
       2018-03-17 21:42:26 +08:00
    露珠 你这个分析工具是啥
    mingyun
        3
    mingyun  
       2018-03-17 23:11:43 +08:00
    同楼上问 什么工具
    jevonszmx
        4
    jevonszmx  
       2018-03-18 17:49:30 +08:00
    @JellySherry apc 自带的吧
    gouchaoer
        5
    gouchaoer  
       2018-03-18 18:33:18 +08:00 via Android
    apcu 一直有不稳定的问题,另外 pthread 也不大稳定。。。。最近 nikic 在贡献代码优化 APCU。。。php 的单机缓存非常尴尬,yac 不保证数据安全,apcu 又不稳定
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   956 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 21:19 · PVG 05:19 · LAX 14:19 · JFK 17:19
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.