Laravel job listener is running over 10s of thousands of records, and giving the error
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1179648 bytes) in .../vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php on line 184
[Symfony\Component\Debug\Exception\FatalErrorException]
Allowed memory size of 268435456 bytes exhausted (tried to allocate 1179648 bytes)
I have proven using phpinfo()
that the memory_limit = 512M
, so I'm at a loss as to what is happening when 512 > 268 :) - also what has belongsTo
relationship got to do with it ?