laravel很慢_Laravel 本地开发,页面打开速度很慢,基本超过 10 秒,什么解决?...

这篇博客探讨了Laravel框架在本地开发环境中遇到的页面加载速度慢的问题,通过分析php-fpm慢日志,指出可能的问题出现在Composer的Autoload和数据库连接上。提到了Debugbar的加载影响,以及TrustProxies、请求转换中间件等可能的性能消耗,并建议进行相关优化来提升开发效率。
摘要由CSDN通过智能技术生成

正在删除评论...

@学院君#1064

这是php-fpm慢日志,看出什么蹊跷吗?

[14-Nov-2017 09:09:02] [pool www] pid 3621

script_filename = /home/vagrant/Code/larabbs/public/index.php

[0x00007f0a69a156f0] Composer\Autoload\includeFile() /home/vagrant/Code/larabbs/vendor/composer/ClassLoader.php:322

[0x00007f0a69a15660] loadClass() unknown:0

[0x00007f0a69a15600] spl_autoload_call() unknown:0

[0x00007ffcf066a480] ???() /home/vagrant/Code/larabbs/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:271

[0x00007f0a69a15510] createConnection() /home/vagrant/Code/larabbs/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:77

[0x00007f0a69a15490] createSingleConnection() /home/vagrant/Code/larabbs/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:51

[0x00007f0a69a15410] make() /home/vagrant/Code/larabbs/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php:119

[0x00007f0a69a15360] makeConnection() /home/vagrant/Code/larabbs/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php:74

[0x00007f0a69a15230] connection() /home/vagrant/Code/larabbs/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php:327

[0x00007f0a69a151a0] __call() /home/vagrant/Code/larabbs/vendor/barryvdh/laravel-debugbar/src/LaravelDebugbar.php:336

[0x00007f0a69a14fd0] boot() /home/vagrant/Code/larabbs/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php:61

[0x00007f0a69a14f00] handle() /home/vagrant/Code/larabbs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149

[0x00007f0a69a14e40] Illuminate\Pipeline{closure}() /home/vagrant/Code/larabbs/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53

[0x00007f0a69a14d80] Illuminate\Routing{closure}() /home/vagrant/Code/larabbs/vendor/fideloper/proxy/src/TrustProxies.php:56

[0x00007f0a69a14ce0] handle() /home/vagrant/Code/larabbs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149

[0x00007f0a69a14c20] Illuminate\Pipeline{closure}() /home/vagrant/Code/larabbs/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53

[0x00007f0a69a14b60] Illuminate\Routing{closure}() /home/vagrant/Code/larabbs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:30

[0x00007f0a69a14ab0] handle() /home/vagrant/Code/larabbs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149

[0x00007f0a69a149f0] Illuminate\Pipeline{closure}() /home/vagrant/Code/larabbs/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53

[0x00007f0a69a14930] Illuminate\Routing{closure}() /home/vagrant/Code/larabbs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:30

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值