本地開(kāi)發(fā)一切正常,代碼上傳到服務(wù)器,只要一運(yùn)行php start.php restart,回車的一瞬間,整臺(tái)服務(wù)器就掛掉,只能重啟服務(wù)器,屢試不爽
5-01-13 17:16:10 pid:22569 worker[webman:23785] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[webman:23729] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[webman:23737] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[webman:23851] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[webman:23791] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[webman:23757] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[webman:23816] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[webman:23756] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[webman:23767] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[webman:23889] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[webman:23885] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[plugin.webman.redis-queue.consumer:23759] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[plugin.webman.redis-queue.consumer:23052] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[webman:23749] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[webman:23762] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[webman:23787] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[webman:23722] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[webman:23739] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[webman:23789] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[webman:23807] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[plugin.webman.push.server:23680] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[webman:23883] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[webman:23805] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[plugin.webman.redis-queue.consumer:23585] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[webman:23769] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[webman:23754] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[webman:23813] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[webman:23833] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[webman:23723] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[webman:23745] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[plugin.webman.redis-queue.consumer:23687] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[webman:23806] exit with status 9
2025-01-13 17:16:10 pid:22569 worker[webman:23732] exit with status 9
2025-01-13 17:16:10 pid:22569 Workerman[start.php] has been stopped
centos7服務(wù)器
"require": {
"php": ">=7.2",
"workerman/webman-framework": "^1.5.0",
"monolog/monolog": "^2.0",
"saithink/saiadmin": "^3.1",
"illuminate/database": "^11.36",
"illuminate/pagination": "^11.34",
"illuminate/events": "^11.34",
"symfony/var-dumper": "^7.1",
"laravel/serializable-closure": "^2.0",
"kriss/webman-eloquent-ide-helper": "^1.2",
"webman/console": "^1.3",
"webman/push": "^1.0",
"ext-json": "*",
"overtrue/wechat": "^5.0",
"psr/container": "^1.1.1",
"webman/blade": "^1.5.5",
"symfony/cache": "^6.4",
"psr/simple-cache": "^3.0",
"php-di/php-di": "^6.3",
"doctrine/annotations": "^1.14",
"ext-simplexml": "*",
"ext-xdebug": "*",
"webman/redis-queue": "^1.3",
"coraxster/flysystem-aws-s3-v3-minio": "^1.0",
"jenssegers/mongodb": "^5.1",
"ext-imagick": "*",
"godruoyi/php-snowflake": "^3.1",
"predis/predis": "^2.3",
"ext-redis": "*",
"fukuball/jieba-php": "^0.34.0",
"ext-openssl": "*"
},
已經(jīng)不敢運(yùn)行啟動(dòng)命令了,求救。。。。。
服務(wù)器內(nèi)存爆掉了
奇怪我本地很正常,這個(gè)應(yīng)用就是個(gè)正常的crud
服務(wù)器內(nèi)存不夠用了,進(jìn)程被linux內(nèi)核kill掉了。
所以你開(kāi)了多少進(jìn)程?服務(wù)器內(nèi)存多大?
這不科學(xué)啊,我本地開(kāi)發(fā)8g的本子,內(nèi)存都毫無(wú)波動(dòng),服務(wù)器32g的內(nèi)存,并且是php start.php start的一瞬間,整個(gè)系統(tǒng)都不動(dòng)了,就算內(nèi)存泄漏也不會(huì)一瞬間就把服務(wù)器打爆吧?
不是內(nèi)存大內(nèi)存就隨便用,比如其它程序mysql啥的占用很大內(nèi)存,剩余給webman的就沒(méi)多少了,進(jìn)程開(kāi)多了內(nèi)存就不足了。