Support the ongoing development of Laravel.io →
7 months ago
Last updated 3 months ago.
0

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!

LoadForge

Your banner here too?

Nedim Nedim nedim Joined 11 Sep 2020

Moderators

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

Your logo here?

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

© 2022 Laravel.io - All rights reserved.