Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

hoseinz3's avatar

Queue worker memory limit issue

Hi guys, i use supervisor for up an running queues in my system. one of my challenging queue is generate report.

php artisan queue:work --timeout=180 --memory=1500 --queue=generate_report

when i generate report queue:work used about 1GB of RAM and this amount of RAM doesn't free at all, i expect queue:work kill after 180 seconds and supervisor re-run this process. unfortunately my expectation is wrong :| what are your suggestion?

0 likes
2 replies
Yahav's avatar

bumping this out of interest.

tannguyenit's avatar

I think you can read this post divinglaravel.com/avoiding-memory-leaks-when-running-laravel-queue-workers

Please or to participate in this conversation.