Laravel horizon workers failed due to memory limit in production environnement.
I tried to increase memory limit in config file horizon.php but still the sames errors.
And also tried to debug the job(Images process) by getting the memory usage and it doesn't go beyong 400M.
My php memory_limit = 768M
Here is my supervisor configuration
'supervisor-1' => [
'connection' => 'redis',
'queue' => ['default', 'uploads', 'amounts'],
'balance' => 'simple',
'processes' => 3,
'memory'=> 768,
'timeout'=> 360,
'tries' => 3,
]
PS: The same configuration works fine in local where php memory_limit = 128M