简体   繁体   English

Laravel-初始化时间长

[英]Laravel - Long initialisation time

I maintain several Laravel projects. 我维护了几个Laravel项目。 They usually boot quite quickly but I have that one project which boots very slow. 它们通常启动非常快,但是我有一个启动速度很慢的项目。

Project is written in Laravel 5.0, uses PHP 5.4.24, EasyPHP DevServer on Windows Server 2012. 该项目使用Laravel 5.0编写,在Windows Server 2012上使用PHP 5.4.24,EasyPHP DevServer。

Here's a screenshot from Chrome Clockwork plugin: 这是Chrome Clockwork插件的屏幕截图: Laravel初始化时间

For example in another Laravel project(same version - 5.0) running on my local computer(not very fast) it takes 80 - 140 ms to initialise. 例如,在本地计算机上运行的另一个Laravel项目(相同版本-5.0)中(不是很快),初始化需要80-140毫秒。 Furthermore, Application initialisation event ends when Router dispatch starts which is clearly not the case in the picture above. 此外,当Router dispatch开始时, Application initialisation事件结束,这显然不是上图中的情况。

Another issue(maybe related, maybe not) is that whenever I run composer update it takes several minutes to run all those tasks with merely 6 requirements 另一个问题(可能相关,也许不相关)是,每当我运行composer update时,仅用6个要求就需要花几分钟来运行所有这些任务。

尝试使用服务器中的日志[错误,警告]检查问题。在大多数情况下,您会在服务器日志文件中看到问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM