Skip to content

Your Laravel queue workers keep 8 copies of your app in memory

– dev.to

This post explains why Laravel queue workers and Horizon supervisors each keep their own compiled copy of your app in memory, and how that adds up fast on smaller servers. It also introduces queue-prefork, a package that shares opcache across forked workers and dramatically cuts memory usage without changing job throughput.

Read more [dev.to]

Join 9,500+ smart developers

Get my monthly newsletter with what I learn from running Spatie, building Oh Dear, and maintaining 300+ open source packages. Practical takes on Laravel, PHP, and AI that you can actually use.

No spam. Unsubscribe anytime. You can also follow me on X.

Found something interesting to share? Submit a link to the community section.