并发不高,但是一直存在部分请求超时 - Laravel 性能问题?

版本:php 5.6.31 laravel 4.2
并发不高,但是一直存在部分请求超时,有没有大神知道是怎么回事?


[0x00007fc621f39338] hasChildren() /data/www/portal/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php:73
[0x00007ffffdd63a80] hasChildren() unknown:0
[0x00007ffffdd63de0] next() unknown:0
[0x00007fc621f391a8] rewind() /data/www/portal/vendor/symfony/finder/Iterator/FilterIterator.php:33
[0x00007ffffdd64200] rewind() unknown:0
[0x00007fc621f38d20] rewind() /data/www/portal/vendor/symfony/finder/Iterator/FilterIterator.php:33
[0x00007ffffdd64620] rewind() unknown:0
[0x00007fc621f38880] gc() /data/www/portal/vendor/laravel/framework/src/Illuminate/Session/FileSessionHandler.php:91
[0x00007fc621f384c8] gc() /data/www/portal/vendor/laravel/framework/src/Illuminate/Session/Middleware.php:159
[0x00007fc621f38280] collectGarbage() /data/www/portal/vendor/laravel/framework/src/Illuminate/Session/Middleware.php:128
[0x00007fc621f380f8] closeSession() /data/www/portal/vendor/laravel/framework/src/Illuminate/Session/Middleware.php:79
[0x00007fc621f37d80] handle() /data/www/portal/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php:47
[0x00007fc621f37aa8] handle() /data/www/portal/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php:51
[0x00007fc621f378d0] handle() /data/www/portal/vendor/stack/builder/src/Stack/StackedHttpKernel.php:23
[0x00007fc621f37758] handle() /data/www/portal/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:641
[0x00007fc621f374c0] run() /data/www/portal/public/index.php:49
《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
讨论数量: 4
leo

用文件存 session,当 session 数量很多时并且触发了垃圾回收,磁盘 io 没跟上就超时了

7年前 评论
leo

用文件存 session,当 session 数量很多时并且触发了垃圾回收,磁盘 io 没跟上就超时了

7年前 评论

@leo sessions文件10w+,删除就好了,谢谢大神的帮助

7年前 评论

session 用redis去存储呢?

7年前 评论

@贺兰丛丛 正在考虑存redis,但是不知道如何选择数据库,比如:select 1 、select 2

7年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!