Ubuntu服务器Laravel应用CPU占满100%问题排查求助
Laravel队列进程引发CPU使用率100%问题
我在DigitalOcean的Ubuntu服务器上部署了Laravel应用,过去几个月运行一直正常,但今天凌晨6点左右CPU使用率突然飙升到100%。通过htop和atop命令排查后,发现问题源于PHP进程——有多个运行queue:worker的PHP进程占用大量资源。
我使用Supervisor来管理队列,之前队列运行都很正常,当前的Supervisor配置如下:
process_name=%(program_name)s_%(process_num)02d command=php /var/www/html/artisan queue:work autostart=true autorestart=true user=root numprocs=8 redirect_stderr=true stdout_logfile=/var/www/html/worker.log
相关进程截图:

内容的提问来源于stack exchange,提问作者Pepa Zdepa
相关产品推荐
相关产品推荐

