Replies: 2 comments 2 replies
-
@derosavage, the issue is with your php.ini memory limit. Make sure you set this limit in the CLI php.ini file (not FPM). |
Beta Was this translation helpful? Give feedback.
-
For those of you arriving from the future, the change I made was to add command=php -d memory_limit=512M /var/www/artisan queue:work --sleep=1 --timeout=100 --memory=512 I was trying to solve the problem that After adding |
Beta Was this translation helpful? Give feedback.
-
Im still facing the same or similar issue. I used the --memory parameter together with supervisor and the work command like this:
command=php /var/www/artisan queue:work --sleep=1 --timeout=100 --memory=512
However, a quite big job still fails with the "Allowed memory size of 134217728 bytes exhausted (tried to allocate 5988352 bytes)". What makes me thing that the memory option does not work is the message. It says "of 134217728 byes" which is 128MB, which is the default value of the memory parameter. In the php.ini memory_limit is also set to 512M.
Originally posted by @derosavage in #25738 (comment)
Beta Was this translation helpful? Give feedback.
All reactions