You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

PHP 8.1.21启用JIT触发503错误,PHP 8.2.15仍存死锁问题

PHP JIT启用后的异常问题记录

操作流程

  • 为PHP 8.1.21启用JIT,配置如下:
    opcache.jit_buffer_size=256M
    opcache.enable=1
    opcache.enable_cli=1
    
  • 重启PHP FPM后,通过站点下的opcache.php和phpinfo.php验证,JIT状态显示正常

异常情况

PHP 8.1.21版本

访问站点时触发503 Service Unavailable错误,Apache日志记录如下:

[Wed Jul 19 09:40:46.504648 2023] [proxy_fcgi:error] [pid 5914:tid 47200906626816] [remote 79.107.70.235:1854] AH01067: Failed to read FastCGI header
[Wed Jul 19 09:40:46.504677 2023] [proxy_fcgi:error] [pid 5914:tid 47200906626816] (104)Connection reset by peer: [remote 79.107.70.235:1854] AH01075: Error dispatching request to :

PHP 8.2.15版本

升级至该版本后,503错误消失,但某WordPress站点出现两次死锁;禁用JIT后,一周内未再出现死锁,推测此版本的JIT仍存在稳定性缺陷。


内容的提问来源于stack exchange,提问作者alancc

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.15 17:54:53