docker启动 webman 失败

lp5k

bug描述

在docker启动 php start.php start  启动失败
报错信息 #1位置 process\Monitor->getMemoryLimit('32m')

报错信息

ErrorException: A non well formed numeric value encountered in /webman/process/Monitor.php:230
Stack trace:
#0 /webman/process/Monitor.php(230): {closure}(8, 'A non well form...', '/webman/process...', 230, Array)
#1 /webman/process/Monitor.php(97): process\Monitor->getMemoryLimit('32m')
#2 /webman/vendor/workerman/webman-framework/src/Container.php(70): process\Monitor->__construct(Array, Array, Array)
#3 /webman/vendor/workerman/webman-framework/src/support/Container.php(46): Webman\Container->make('process\\Monitor', Array)
#4 /webman/support/helpers.php(469): support\Container::__callStatic('make', Array)
#5 /webman/vendor/workerman/workerman/Worker.php(2457): {closure}(Object(Workerman\Worker))
#6 /webman/vendor/workerman/workerman/Worker.php(1579): Workerman\Worker->run()
#7 /webman/vendor/workerman/workerman/Worker.php(1420): Workerman\Worker::forkOneWorkerForLinux(Object(Workerman\Worker))
#8 /webman/vendor/workerman/workerman/Worker.php(1394): Workerman\Worker::forkWorkersForLinux()
#9 /webman/vendor/workerman/workerman/Worker.php(1725): Workerman\Worker::forkWorkers()
#10 /webman/vendor/workerman/workerman/Worker.php(1665): Workerman\Worker::monitorWorkersForLinux()
#11 /webman/vendor/workerman/workerman/Worker.php(562): Workerman\Worker::monitorWorkers()
#12 /webman/vendor/workerman/webman-framework/src/support/App.php(131): Workerman\Worker::runAll()
#13 /webman/start.php(4): support\App::run()
#14 {main}
worker[monitor:128] exit with status 64000
Workerman[start.php] has been stopped

修改代码位置在223行

截图

重现bug的步骤

系统环境及workerman/webman等具体版本

docker镜像 php:7.4-fpm-alpine
docker镜像 php:8.1.14-fpm-alpine
workerman/webman-framework: ^1.4.3
monolog/monolog: ^2.0"

Workerman version:4.1.6 PHP version:7.4.33

1063 1 0
1个回答

walkor 打赏

截图下 /webman/process/Monitor.php 里的代码,带上行号,尤其是230行

  • lp5k 2023-02-17

    添加了

  • walkor 2023-02-17

    好的,我了解了,这个问题之前修复过了,但是还没发版本

年代过于久远,无法发表回答
×
🔝