laravel octane 错误有谁碰到过

200 POST /app/buyer/tasks/dispatcher/3327 …………… 6.73 mb 15.45 ms

Symfony\Component\ErrorHandler\Error\FatalError

Allowed memory size of 209715200 bytes exhausted (tried to allocate 192938352 bytes)

at vendor/symfony/process/Process.php:600
596▕ public function getIncrementalOutput()
597▕ {
598▕ $this->readPipesForOutput(FUNCTION);
599▕
➜ 600▕ $latest = stream_get_contents($this->stdout, -1, $this->incrementalOutputOffset);
601▕ $this->incrementalOutputOffset = ftell($this->stdout);
602▕
603▕ if (false === $latest) {
604▕ return ‘’;

Whoops\Exception\ErrorException

Allowed memory size of 209715200 bytes exhausted (tried to allocate 192938352 bytes)

at vendor/symfony/process/Process.php:600
596▕ public function getIncrementalOutput()
597▕ {
598▕ $this->readPipesForOutput(FUNCTION);
599▕
➜ 600▕ $latest = stream_get_contents($this->stdout, -1, $this->incrementalOutputOffset);
601▕ $this->incrementalOutputOffset = ftell($this->stdout);
602▕
603▕ if (false === $latest) {
604▕ return ‘’;

  [2m+1 vendor frames [22m

2 [internal]:0
Whoops\Run::handleShutdown()

ERROR Server is already running.

ERROR Server is already running.

ERROR Server is already running.

ERROR Server is already running.

输出日志显示这个

然后在宝塔的supervisor 进程中显示
[已停止 ]| FATAL |

然后网站仍然能打开

《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
讨论数量: 2

老哥,supervisor 都启动不了 octane,怎么配置的?这是我参考网上的:

[program:laravel-octane-worker]
process_name=%(program_name)s_%(process_num)02d
command=php path_of_laravel_project/artisan octane:start --server=swoole --max-requests=1000 --workers=4 --task-workers=12 --port=8089
autostart=true
autorestart=true
user=www-data
redirect_stderr=true
stdout_logfile=any_existing_path/laravel-octane-worker.log​
stopwaitsecs=3600

supervisorctl reread 提示 available

PS: 我是在 docker 容器里边。

2年前 评论
水底沉星 9个月前

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