


Once the limit is reached, the worker process will exit and your process manager will start a fresh instance. These three buttons at the top toggle how you view CPU usage. You can use the -max-jobs and -max-time options on the php artisan queue:work command to limit the number of jobs the worker may process or the time it should stay up. This means that all those cells must layout on the main thread in quick succession. php artisan queue:work -max-jobs= 1000 -max-time= 3600 The solution is simple though restart the workers more often. Over time, while processing your Laravel Jobs, some references will pile up in the server memory that won't be detected by PHP's garbage collector and will cause the server to crash at some point. I’ll show you my favorite tool for this task along with a few additional ways to check CPUs in Linux. If you're running your queue workers on a server with limited resources, or a server that's also used to serve HTTP requests and do other tasks, it's important to ration the resource used by those workers. There are a number of ways you can get information about the processor on your Linux system.
