中文里都说是slowlog的错,关闭slow即可解决这个问题
但是为什么slow log会导致这个错误?实际环境一定要关闭slow log?
详细原因还得翻英文
-
In other words: when PHP's slowlog tries to get an actual stacktrace, it may send a signal to the master process which in turn finds the child process that is slow (which it fork() 'd). However, by the time that happens, the child may have already finished its request and started serving another one.
简单来说就是,当php-fpm发现有slow运行的时候,去调用trace的,当trace开始的时候慢访问已经结束了!
也就是说,你的slow记录时间正好等于完成时间
如果这个日志很频繁的话,先把slow记录时间延后1秒即可
阅读(1898) | 评论(0) | 转发(0) |