Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

neeonline's avatar

Queue Memory Limit

Hello all,

Ive a exporter queue to generate my Excel reports. Those tasks are memory have (35k rows with formulas and calculations).

Im using Forge for the first time.

How do I set/increase the memory limit to my queues in Forge? Ive tried to Google it, but I have no success.

Thank you.

0 likes
1 reply
bobbybouwmann's avatar

As far as I know, you can't do this on queue level unless you have your work running on another server.

You can increase the execution time on PHP level in your .ini files

// php5
sudo sed -i "s/\memory_limit = .*/memory_limit = 1024M/" /etc/php5/fpm/php.ini

// php7.0
sudo sed -i "s/\memory_limit = .*/memory_limit = 1024M/" /etc/php/7.0/fpm/php.ini

// php7.2
sudo sed -i "s/\memory_limit = .*/memory_limit = 1024M/" /etc/php/7.2/fpm/php.ini

Make sure you restart php fpm after this and it should be applied ;)

Note: If you apply this your whole server will have a higher memory limit.

2 likes

Please or to participate in this conversation.