Laravel:在第 47 行的 vendor/symfony/finder/Iterator/DateRangeFilterIterator.php 中超出了 30 秒的最大执行时间

Gau*_*pta 1 performance laravel

我的 Laravel 项目几乎在每个页面上都出现以下错误:

PHP Fatal error:  Maximum execution time of 30 seconds exceeded in vendor/symfony/finder/Iterator/DateRangeFilterIterator.php on line 47
Run Code Online (Sandbox Code Playgroud)

尤其是当我们的服务器流量负载很高时,就会发生这种情况。可能是什么原因?

Gau*_*pta 5

事实证明,我们在会话中使用了磁盘文件系统。会话文件的磁盘 I/O 速率是瓶颈。将会话驱动程序更改为 redis 或数据库修复了它。