Tuesday, April 11, 2017

CPU usage issue in queue

Below is the method in Kernel.php file.

protected function schedule(Schedule $schedule)
{
    $schedule->command('queue:listen')->everyFiveMinutes()->withoutOverlapping();
}

I have shared hosting account in Godaddy and using cron job for the Laravel Queue. I can't use Supervisor Queue because they don't allow SSH root access for my plan. Below is the screenshot. I am concerned about the CPU usage and Number of process.

enter image description here

My code uses queue for sending email for registration. That's it. No other thing is using Queue. Cron job is running after each 30 minutes for php artisan command. After running first time.it shows above stats. Am I doing anything wrong?



via Pankaj

Advertisement