Support the ongoing development of Laravel.io →
posted 2 years ago
Last updated 1 year 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

mazedlx liked this reply

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!

Eventy

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.

© 2024 Laravel.io - All rights reserved.