并发不高,但是一直存在部分请求超时 - 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
《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 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年前 评论

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