docker 搭建php环境,在win10 WSL 2 thinkphp6.0执行比较慢是啥

寻儒
发布于 2022-9-25 22:12
浏览
0收藏

项目开发目录在宿机里的目录里win10系统,一般不在docker里一秒钟内,放到docker里在2~3秒明显比较慢了

。大家遇到过嘛

有没有好的解决方法呢?

慢日志:fpm.slow.log

[25-Sep-2022 15:48:25] [pool www] pid 271

script_filename = /www/luzhang.com/public/index.php

[0x00007f6e8ea17540] file_exists() /www/luzhang.com/vendor/composer/ClassLoader.php:507

[0x00007f6e8ea16f50] findFileWithExtension() /www/luzhang.com/vendor/composer/ClassLoader.php:459

[0x00007f6e8ea16d20] findFile() /www/luzhang.com/vendor/composer/ClassLoader.php:427

[0x00007f6e8ea16c80] loadClass() unknown:0

[0x00007f6e8ea16c20] spl_autoload_call() unknown:0

[0x00007ffd0e965440] ???() /www/luzhang.com/vendor/guzzlehttp/guzzle/src/Client.php:230

[0x00007f6e8ea168c0] configureDefaults() /www/luzhang.com/vendor/guzzlehttp/guzzle/src/Client.php:70

[0x00007f6e8ea16780] __construct() /www/luzhang.com/app/common/library/BaiduYingyan.php:300

[0x00007f6e8ea16700] getHttpClient() /www/luzhang.com/app/common/library/BaiduYingyan.php:250

[0x00007f6e8ea165e0] get() /www/luzhang.com/app/common/library/BaiduYingyan.php:105

[0x00007f6e8ea16470] getEntityList() /www/luzhang.com/app/api/controller/Daping.php:104

[0x00007f6e8ea15a30] entityList() /www/luzhang.com/vendor/topthink/framework/src/think/Container.php:344

[0x00007f6e8ea159c0] invokeArgs() /www/luzhang.com/vendor/topthink/framework/src/think/Container.php:344

[0x00007f6e8ea15900] invokeReflectMethod() /www/luzhang.com/vendor/topthink/framework/src/think/route/dispatch/Controller.php:110

[0x00007f6e8ea155a0] think\route\dispatch{closure}() /www/luzhang.com/vendor/topthink/framework/src/think/Pipeline.php:59

[0x00007f6e8ea15500] think{closure}() /www/luzhang.com/vendor/topthink/framework/src/think/Pipeline.php:66

[0x00007f6e8ea15410] then() /www/luzhang.com/vendor/topthink/framework/src/think/route/dispatch/Controller.php:113

[0x00007f6e8ea152b0] exec() /www/luzhang.com/vendor/topthink/framework/src/think/route/Dispatch.php:90

[0x00007f6e8ea15090] run() /www/luzhang.com/vendor/topthink/framework/src/think/Route.php:772

[0x00007f6e8ea15010] think{closure}() /www/luzhang.com/vendor/topthink/framework/src/think/Pipeline.php:59

php.error.log

[25-Sep-2022 15:53:16 Asia/Shanghai] PHP Notice: Constant REWRITE already defined in /www/luzhang.com/app/common.php on line 13

[25-Sep-2022 15:53:16 Asia/Shanghai] PHP Stack trace:

[25-Sep-2022 15:53:16 Asia/Shanghai] PHP 1. {main}() /www/luzhang.com/public/index.php:0

[25-Sep-2022 15:53:16 Asia/Shanghai] PHP 2. think\Http->run() /www/luzhang.com/public/index.php:28

[25-Sep-2022 15:53:16 Asia/Shanghai] PHP 3. think\Http->initialize() /www/luzhang.com/vendor/topthink/framework/src/think/Http.php:163

[25-Sep-2022 15:53:16 Asia/Shanghai] PHP 4. think\App->initialize() /www/luzhang.com/vendor/topthink/framework/src/think/Http.php:186

[25-Sep-2022 15:53:16 Asia/Shanghai] PHP 5. think\App->load() /www/luzhang.com/vendor/topthink/framework/src/think/App.php:451

[25-Sep-2022 15:53:16 Asia/Shanghai] PHP 6. include_once() /www/luzhang.com/vendor/topthink/framework/src/think/App.php:511

docker 搭建php环境,在win10 WSL 2 thinkphp6.0执行比较慢是啥原因-开源基础软件社区

收藏
回复
举报
回复
    相关推荐