php artisan queue: work is running in the background automatically and not stopping #37154
Unanswered
sajidfrommerqata
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm queuing emails and send them in the background by using PHP artisan queue: work. I'm using AWS Lightsail Linux Instance on which I installed Bitnami LAMP and supervisor for running this command in the background
But I faced a very strange issue. The issue is MYSQL consumes all the memory randomly and bursts the CPU. Then I thought this because of Supervisor. So, I stopped the supervisor by running this command. Sudo /etc/init.d/supervisor. The output of this command is [ ok ] Stopping supervisor (via systemctl): supervisor.service.
After supervisor, I used crontab. and then I found the same MySQL issue with crontab also. Then I disabled crontab also by running sudo /etc/init.d/cron stop. The output of the command is [ ok ] Stopping cron (via systemctl): cron.service.
Let me clear one thing here, that I'm testing my application and MySQL is almost empty. Below are the specifications of my virtual machine:
4 GB RAM, 2 vCPUs, 80 GB SSD LAMP (PHP 7) Singapore, Zone A (ap-southeast-1a) So, my question is how emails are sending automatically and why MYSQL burst the CPU?
Beta Was this translation helpful? Give feedback.
All reactions