Support the ongoing development of Laravel.io →
posted 1 year ago
Last updated 10 months ago.
0
moderator

Hey!

I don't think that the problem is the size of the collection itself. Are the jobs that you are dispatching executed on a queue (async) or in a synchronous way? If they are synchronous that could be the problem as it tries to instantiate 1 mio jobs right away which will cause the exception. If you just want to push 1 mio jobs into a queue, this shouldn't throw an exception imho.

Best wishes

Tom

1

adding to tom's suggestion make sure you have enough swap spaces + memory in your VM/compute/machine

0

Sign in to participate in this thread!

LaraJobs

Your banner here too?

Nedim nedim Joined 11 Sep 2020

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2023 Laravel.io - All rights reserved.