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 |

然后网站仍然能打开

《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
讨论数量: 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 容器里边。

3年前 评论
水底沉星 1年前

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